Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.

Commit 5a57584

Browse files
committed
use subarrays for ldiv
1 parent ced43d1 commit 5a57584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ A_mul_Bc!(::Void, G::LinAlg.Givens) = nothing
2828

2929
function A_ldiv_B!{Ta,Tb}(A::SVD{Ta}, B::StridedVecOrMat{Tb})
3030
k = searchsortedlast(A.S, eps(real(Ta))*A.S[1], rev=true)
31-
A.Vt[1:k,:]' * (A.S[1:k] .\ (A.U[:,1:k]' * B))
31+
sub(A.Vt,1:k,:)' * (sub(A.S,1:k) .\ (sub(A.U,:,1:k)' * B))
3232
end

0 commit comments

Comments
 (0)