Skip to content

Commit ad59ceb

Browse files
committed
Work around issue with truncated Float32 representation of lwork in
sgesdd by using nextfloat. See http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=13&t=4587&p=11036&hilit=sgesdd#p11036 and scipy/scipy#5401 Fixes #15784
1 parent 7a847a7 commit ad59ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/linalg/lapack.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ for (geev, gesvd, gesdd, ggsvd, elty, relty) in
15721572
end
15731573
chklapackerror(info[])
15741574
if i == 1
1575-
lwork = BlasInt(real(work[1]))
1575+
lwork = round(BlasInt, nextfloat(real(work[1])))
15761576
work = Array($elty, lwork)
15771577
end
15781578
end

0 commit comments

Comments
 (0)