Skip to content

Commit ed9da5c

Browse files
committed
avoid unnecesary copy
1 parent b804995 commit ed9da5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abstractblocksparsearray/abstractblocksparsematrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function svd!(
6767
@assert is_block_permutation_matrix(A) "Cannot keep sparsity: use `svd` to convert to `BlockedMatrix"
6868
U, S, Vt = _allocate_svd_output(A, full, alg)
6969
for bI in eachblockstoredindex(A)
70-
bUSV = svd!(A[bI]; full, alg)
70+
bUSV = svd!(@view!(A[bI]); full, alg)
7171
brow, bcol = Tuple(bI)
7272
U[brow, bcol] = bUSV.U
7373
S[bcol] = bUSV.S

0 commit comments

Comments
 (0)