Skip to content

Commit 6852f3f

Browse files
committed
Check equality with zero
1 parent 6f8f6e8 commit 6852f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dense.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ julia> log(A)
915915
function log(A::AbstractMatrix)
916916
# If possible, use diagonalization
917917
if isdiag(A) && eltype(A) <: Union{Real,Complex}
918-
if eltype(A) <: Real && all(>(0), diagview(A))
918+
if eltype(A) <: Real && all(>=(0), diagview(A))
919919
return applydiagonal(log, A)
920920
else
921921
return applydiagonal(logcomplex, A)

0 commit comments

Comments
 (0)