Skip to content

Commit

Permalink
Fix pinv diagview call
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Nov 11, 2024
1 parent e7203e1 commit d591508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/src/dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ function pinv(A::AbstractMatrix{T}; atol::Real = 0.0, rtol::Real = (eps(real(flo
return similar(A, Tout, (n, m))
end
if isdiag(A)
dA = diagview(A, indA)
dA = diagview(A)
maxabsA = maximum(abs, dA)
tol = max(rtol * maxabsA, atol)
B = fill!(similar(A, Tout, (n, m)), 0)
Expand Down

0 comments on commit d591508

Please sign in to comment.