Skip to content

Commit 8d82b27

Browse files
lkdvosmtfishman
andauthored
Update abstractblocksparsematrix.jl
Co-authored-by: Matt Fishman <[email protected]>
1 parent 2f80c18 commit 8d82b27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/abstractblocksparsearray/abstractblocksparsematrix.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ function svd!(
6767
U, S, Vt = _allocate_svd_output(A, full, alg)
6868
for bI in eachblockstoredindex(A)
6969
bUSV = svd!(A[bI]; full, alg)
70-
brow, bcol = Int.(Tuple(bI))
71-
U[Block(brow, bcol)] = bUSV.U
72-
S[Block(bcol)] = bUSV.S
73-
Vt[Block(bcol, bcol)] = bUSV.Vt
70+
brow, bcol = Tuple(bI)
71+
U[brow, bcol] = bUSV.U
72+
S[bcol] = bUSV.S
73+
Vt[bcol, bcol] = bUSV.Vt
7474
end
7575
return SVD(U, S, Vt)
7676
end

0 commit comments

Comments
 (0)