Skip to content

Commit 06a05f4

Browse files
committed
Try taking min
1 parent d12186a commit 06a05f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lapack.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4090,7 +4090,8 @@ for (stev, stebz, stegr, stein, elty) in
40904090
resize!(iwork, liwork)
40914091
end
40924092
end
4093-
resize!(w, m[]), reshape(resize!(Z, ldz * m[]), ldz, m[])
4093+
Zm = min(size(Z, 2), m[])
4094+
resize!(w, m[]), reshape(resize!(Z, ldz * Zm), ldz, Zm)
40944095
end
40954096

40964097
function stein!(dv::AbstractVector{$elty}, ev_in::AbstractVector{$elty}, w_in::AbstractVector{$elty}, iblock_in::AbstractVector{BlasInt}, isplit_in::AbstractVector{BlasInt})

0 commit comments

Comments
 (0)