Skip to content

Commit 87c2e6e

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/abstractblocksparsearray/abstractblocksparsematrix.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ function _allocate_svd_output(A::AbstractBlockSparseMatrix, full::Bool, ::Algori
4949
slengths[col] = min(brows[row], bcols[col])
5050
end
5151

52-
U = similar(A, axes(A, 1), blockedrange(slengths))
53-
S = similar(A, real(eltype(A)), blockedrange(slengths))
54-
Vt = similar(A, blockedrange(slengths), axes(A, 2))
52+
s_axis = blockedrange(slengths)
53+
U = similar(A, axes(A, 1), s_axis)
54+
S = similar(A, real(eltype(A)), s_axis)
55+
Vt = similar(A, s_axis, axes(A, 2))
5556

5657
return U, S, Vt
5758
end

0 commit comments

Comments
 (0)