Skip to content

Commit 1c1c394

Browse files
committed
Update src/implementations/exponential.jl
1 parent f508b00 commit 1c1c394

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
@@ -34,7 +34,7 @@ end
3434
function check_input(::typeof(exponential!), (τ, A)::Tuple{Number, AbstractMatrix}, expA::AbstractMatrix, alg::AbstractAlgorithm)
3535
m = LinearAlgebra.checksquare(A)
3636
@check_size(expA, (m, m))
37-
(τ isa Real) ? @check_scalar(expA, A) : @check_scalar(expA, A, complex)
37+
@check_scalar(expA, A, (τ isa Real) ? identity : complex)
3838
return nothing
3939
end
4040

0 commit comments

Comments
 (0)