Skip to content

Commit 780f321

Browse files
lkdvosmtfishman
andauthored
Update NDTensors/src/lib/BlockSparseArrays/src/BlockArraysExtensions/BlockArraysExtensions.jl
Co-authored-by: Matt Fishman <[email protected]>
1 parent 85fce19 commit 780f321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NDTensors/src/lib/BlockSparseArrays/src/BlockArraysExtensions/BlockArraysExtensions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ function svd!(A::BlockedMatrix; full::Bool=false, alg::Algorithm=default_svd_alg
593593

594594
# restore block pattern
595595
m = length(F.S)
596-
bsz1, bsz2, bsz3 = BlockArrays.blocksizes(A, 1), [m], BlockArrays.blocksizes(A, 2)
596+
bax1, bax2, bax3 = axes(A, 1), blockedrange([m]), axes(A, 2)
597597

598598
u = BlockedArray(F.U, bsz1, bsz2)
599599
s = BlockedVector(F.S, bsz2)

0 commit comments

Comments
 (0)