diff --git a/NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blockdiagonalarray.jl b/NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blockdiagonalarray.jl index f485d8082d..8eb3fb11d8 100644 --- a/NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blockdiagonalarray.jl +++ b/NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blockdiagonalarray.jl @@ -52,7 +52,7 @@ function svd(A::BlockDiagonal; kwargs...) end function svd!(A::BlockDiagonal; full::Bool=false, alg::Algorithm=default_svd_alg(A)) # TODO: handle full - F = map(a -> svd!(a; full, alg), A.blocks.diag) + F = map(a -> svd!(a; full, alg), blocks(A).diag) Us = map(Base.Fix2(getproperty, :U), F) Ss = map(Base.Fix2(getproperty, :S), F) Vts = map(Base.Fix2(getproperty, :Vt), F)