From bbcdf503a1d66ebaa9ae78e9541050907dd2e119 Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Thu, 7 Nov 2024 09:49:13 -0500 Subject: [PATCH] Update NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blockdiagonalarray.jl Co-authored-by: Matt Fishman --- .../src/blocksparsearray/blockdiagonalarray.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)