Skip to content

Commit b1ae30f

Browse files
committed
pass correct truncation strategy
1 parent 92b7060 commit b1ae30f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/factorizations/truncation.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ const TBlockUSVᴴ = Tuple{
1515
<:AbstractBlockSparseMatrix,<:AbstractBlockSparseMatrix,<:AbstractBlockSparseMatrix
1616
}
1717

18+
function MatrixAlgebraKit.truncate!(
19+
::typeof(svd_trunc!), (U, S, Vᴴ)::TBlockUSVᴴ, strategy::TruncationStrategy
20+
)
21+
# TODO assert blockdiagonal
22+
return MatrixAlgebraKit.truncate!(
23+
svd_trunc!, (U, S, Vᴴ), BlockPermutedDiagonalTruncationStrategy(strategy)
24+
)
25+
end
26+
1827
function MatrixAlgebraKit.truncate!(
1928
::typeof(svd_trunc!),
2029
(U, S, Vᴴ)::TBlockUSVᴴ,

0 commit comments

Comments
 (0)