Skip to content

Commit 488bc09

Browse files
committed
whoops
1 parent 1e53ef0 commit 488bc09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/svd.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ end
308308

309309
function pinv(F::SVD{T}; atol::Real=0, rtol::Real = (eps(real(float(oneunit(T))))*min(size(F)...))*iszero(atol)) where T
310310
k = _count_svdvals(F.S, atol, rtol)
311-
@views SVD(copy(F.Vt[1:k, :]'), reverse!(inv.(F.S[1:k])), copy(F.U[:,1:k]'))
311+
@views SVD(copy(F.Vt[k:-1:1, :]'), inv.(F.S[k:-1:1]), copy(F.U[:,k:-1:1]'))
312312
end
313313

314314
function inv(F::SVD)

0 commit comments

Comments
 (0)