Skip to content

Commit dcb6b75

Browse files
committed
Fix check for real values to use make sure the type and not just
the value is real.
1 parent 4e8a343 commit dcb6b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eigenGeneral.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function _schur!(H::HessenbergFactorization{T}; tol = eps(real(T)), debug = fals
131131
debug && @printf("Wilkinson-like shift! Subdiagonal is: %10.3e, last subdiagonal is: %10.3e\n", HH[iend, iend - 1], HH[iend - 1, iend - 2])
132132
_d = t*t - 4d
133133

134-
if isreal(_d) && _d >= 0
134+
if _d isa Real && _d >= 0
135135
# real eigenvalues
136136
a = t/2
137137
b = sqrt(_d)/2

0 commit comments

Comments
 (0)