Skip to content

Commit

Permalink
Use iszero in findall for bidiag in LinearAlgebra stdlib (#37661)
Browse files Browse the repository at this point in the history
  • Loading branch information
musm committed Sep 22, 2020
1 parent c0d06d3 commit 46cf572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/bidiag.jl
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ eigvals(M::Bidiagonal) = M.dv
function eigvecs(M::Bidiagonal{T}) where T
n = length(M.dv)
Q = Matrix{T}(undef, n,n)
blks = [0; findall(x -> x == 0, M.ev); n]
blks = [0; findall(iszero, M.ev); n]
v = zeros(T, n)
if M.uplo == 'U'
for idx_block = 1:length(blks) - 1, i = blks[idx_block] + 1:blks[idx_block + 1] #index of eigenvector
Expand Down

0 comments on commit 46cf572

Please sign in to comment.