Skip to content

Commit 711aceb

Browse files
committed
fix mistake
1 parent c563b4b commit 711aceb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/blas.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,9 +2223,8 @@ for (mmname, smname, elty) in
22232223
chkstride1(A)
22242224
chkstride1(B)
22252225
if diag == 'N'
2226-
M = side == 'L' ? A : B
2227-
for i in 1:n
2228-
iszero(M[i,i]) && throw(SingularException(i))
2226+
for i in 1:k
2227+
iszero(A[i,i]) && throw(SingularException(i))
22292228
end
22302229
end
22312230
ccall((@blasfunc($smname), libblastrampoline), Cvoid,

0 commit comments

Comments
 (0)