@@ -154,6 +154,7 @@ function initialize_output(::typeof(svd_compact!), t::AbstractTensorMap,
154154 return U, S, Vᴴ
155155end
156156
157+ # TODO : remove this once `AbstractMatrix` specialization is removed in MatrixAlgebraKit
157158function initialize_output (:: typeof (svd_trunc!), t:: AbstractTensorMap ,
158159 alg:: TruncatedAlgorithm )
159160 return initialize_output (svd_compact!, t, alg. alg)
@@ -165,11 +166,6 @@ function initialize_output(::typeof(svd_vals!), t::AbstractTensorMap,
165166 return DiagonalTensorMap {real(scalartype(t))} (undef, V_cod)
166167end
167168
168- function svd_trunc! (t:: AbstractTensorMap , USVᴴ, alg:: TruncatedAlgorithm )
169- USVᴴ′ = svd_compact! (t, USVᴴ, alg. alg)
170- return truncate! (svd_trunc!, USVᴴ′, alg. trunc)
171- end
172-
173169# Eigenvalue decomposition
174170# ------------------------
175171function check_input (:: typeof (eigh_full!), t:: AbstractTensorMap , DV, :: AbstractAlgorithm )
@@ -284,26 +280,6 @@ function initialize_output(::typeof(eig_vals!), t::AbstractTensorMap,
284280 return D = DiagonalTensorMap {Tc} (undef, V_D)
285281end
286282
287- function initialize_output (:: typeof (eigh_trunc!), t:: AbstractTensorMap ,
288- alg:: TruncatedAlgorithm )
289- return initialize_output (eigh_full!, t, alg. alg)
290- end
291-
292- function initialize_output (:: typeof (eig_trunc!), t:: AbstractTensorMap ,
293- alg:: TruncatedAlgorithm )
294- return initialize_output (eig_full!, t, alg. alg)
295- end
296-
297- function eigh_trunc! (t:: AbstractTensorMap , DV, alg:: TruncatedAlgorithm )
298- DV′ = eigh_full! (t, DV, alg. alg)
299- return truncate! (eigh_trunc!, DV′, alg. trunc)
300- end
301-
302- function eig_trunc! (t:: AbstractTensorMap , DV, alg:: TruncatedAlgorithm )
303- DV′ = eig_full! (t, DV, alg. alg)
304- return truncate! (eig_trunc!, DV′, alg. trunc)
305- end
306-
307283# QR decomposition
308284# ----------------
309285function check_input (:: typeof (qr_full!), t:: AbstractTensorMap , QR, :: AbstractAlgorithm )
0 commit comments