Skip to content

Commit 3630e02

Browse files
committed
fix small type error in hermitial-eig
1 parent 4dac1b2 commit 3630e02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/high-level/matrix-functions/hermitian-eig.lisp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
(let* ((ajk2 (* ajk (conjugate ajk)))
1111
(delta (/ (- ajj akk) 2))
1212
(d2 (* delta delta))
13-
(sgnd (if (minusp delta) -1d0 1d0)) ; we do NOT want SIGNUM here
13+
;; XXX: DELTA should be real here? It's possibly of type
14+
;; COMPLEX.
15+
(sgnd (if (minusp (realpart delta)) -1d0 1d0)) ; we do NOT want SIGNUM here
1416
)
1517
(- akk
1618
(/ ajk2

0 commit comments

Comments
 (0)