Skip to content

Commit fe980c0

Browse files
committed
use truncate_space
1 parent 01019af commit fe980c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/factorizations/truncation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ for f! in (:eig_trunc!, :eigh_trunc!)
9191
(D, V)::Tuple{DiagonalTensorMap,AbstractTensorMap},
9292
strategy::TruncationStrategy)
9393
ind = MAK.findtruncated(diagview(D), strategy)
94-
V_truncated = spacetype(D)(c => length(I) for (c, I) in ind)
94+
V_truncated = truncate_space(space(D, 1), ind)
9595

9696
= DiagonalTensorMap{scalartype(D)}(undef, V_truncated)
9797
truncate_diagonal!(D̃, D, ind)

0 commit comments

Comments
 (0)