Skip to content

Commit f508b00

Browse files
Update src/implementations/exponential.jl
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
1 parent 6589265 commit f508b00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/implementations/exponential.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function check_input(::typeof(exponential!), (τ, A)::Tuple{Number, AbstractMatr
4343
@assert isdiag(A)
4444
@assert expA isa Diagonal
4545
@check_size(expA, (m, m))
46-
(τ isa Real) ? @check_scalar(expA, A) : @check_scalar(expA, A, complex)
46+
@check_scalar(expA, A, (τ isa Real) ? identity : complex)
4747
return nothing
4848
end
4949

0 commit comments

Comments
 (0)