11# Strategies
22# ----------
3-
4- # TODO : deprecate
5- const TruncationScheme = TruncationStrategy
6-
73"""
84 TruncationSpace(V::ElementarySpace, by::Function, rev::Bool)
95
@@ -76,11 +72,6 @@ function truncate(::typeof(svd_trunc!), (U, S, Vᴴ)::NTuple{3,AbstractTensorMap
7672
7773 return (Ũ, S̃, Ṽᴴ), ind
7874end
79- function truncate! (:: typeof (svd_trunc!), USVᴴ:: NTuple{3,AbstractTensorMap} ,
80- strategy:: TruncationStrategy )
81- USVᴴ_trunc, _ = truncate (svd_trunc!, USVᴴ, strategy)
82- return USVᴴ_trunc
83- end
8475
8576function truncate (:: typeof (left_null!),
8677 (U, S):: Tuple{AbstractTensorMap,AbstractTensorMap} ,
@@ -94,11 +85,6 @@ function truncate(::typeof(left_null!),
9485 truncate_domain! (Ũ, U, ind)
9586 return Ũ, ind
9687end
97- function truncate! (:: typeof (left_null!), US:: NTuple{2,AbstractTensorMap} ,
98- strategy:: TruncationStrategy )
99- U_trunc, _ = truncate (left_null!, US, strategy)
100- return U_trunc
101- end
10288
10389for f! in (:eig_trunc! , :eigh_trunc! )
10490 @eval function truncate (:: typeof ($ f!),
@@ -115,11 +101,6 @@ for f! in (:eig_trunc!, :eigh_trunc!)
115101
116102 return (D̃, Ṽ), ind
117103 end
118- @eval function truncate! (:: typeof ($ f!), DV:: Tuple{DiagonalTensorMap,AbstractTensorMap} ,
119- strategy:: TruncationStrategy )
120- DV_trunc, _ = truncate ($ f!, DV, strategy)
121- return DV_trunc
122- end
123104end
124105
125106# Find truncation
0 commit comments