We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f8f6e8 commit 6852f3fCopy full SHA for 6852f3f
src/dense.jl
@@ -915,7 +915,7 @@ julia> log(A)
915
function log(A::AbstractMatrix)
916
# If possible, use diagonalization
917
if isdiag(A) && eltype(A) <: Union{Real,Complex}
918
- if eltype(A) <: Real && all(>(0), diagview(A))
+ if eltype(A) <: Real && all(>=(0), diagview(A))
919
return applydiagonal(log, A)
920
else
921
return applydiagonal(log∘complex, A)
0 commit comments