Skip to content

Commit 2b8882c

Browse files
kshyattlkdvos
andauthored
Update src/implementations/eigh.jl
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
1 parent 60b48c0 commit 2b8882c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/implementations/eigh.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ end
146146
function eigh_full!(A::Diagonal, DV, alg::DiagonalAlgorithm)
147147
check_input(eigh_full!, A, DV, alg)
148148
D, V = DV
149-
I = sortperm(real.(diagview(A)))
149+
I = sortperm(diagview(A); by = real)
150150
if D === A
151151
sort!(diagview(A))
152152
else

0 commit comments

Comments
 (0)