7676# orthogonalization
7777export leftorth, leftorth!, rightorth, rightorth!
7878function leftorth (t:: AbstractTensorMap , p:: Index2Tuple ; kwargs... )
79- Base. depwarn (" `leftorth` is no longer supported , use `left_orth` instead" , :leftorth )
79+ Base. depwarn (" `leftorth` is deprecated , use `left_orth` instead" , :leftorth )
8080 return leftorth! (permutedcopy_oftype (t, factorisation_scalartype (leftorth, t), p); kwargs... )
8181end
8282function rightorth (t:: AbstractTensorMap , p:: Index2Tuple ; kwargs... )
83- Base. depwarn (" `rightorth` is no longer supported , use `right_orth` instead" , :rightorth )
83+ Base. depwarn (" `rightorth` is deprecated , use `right_orth` instead" , :rightorth )
8484 return rightorth! (permutedcopy_oftype (t, factorisation_scalartype (rightorth, t), p); kwargs... )
8585end
8686function leftorth (t:: AbstractTensorMap ; kwargs... )
87- Base. depwarn (" `leftorth` is no longer supported , use `left_orth` instead" , :leftorth )
87+ Base. depwarn (" `leftorth` is deprecated , use `left_orth` instead" , :leftorth )
8888 return leftorth! (copy_oftype (t, factorisation_scalartype (leftorth, t)); kwargs... )
8989end
9090function rightorth (t:: AbstractTensorMap ; kwargs... )
91- Base. depwarn (" `rightorth` is no longer supported , use `right_orth` instead" , :rightorth )
91+ Base. depwarn (" `rightorth` is deprecated , use `right_orth` instead" , :rightorth )
9292 return rightorth! (copy_oftype (t, factorisation_scalartype (rightorth, t)); kwargs... )
9393end
9494function leftorth! (t:: AbstractTensorMap ; kwargs... )
95- Base. depwarn (" `leftorth!` is no longer supported , use `left_orth!` instead" , :leftorth! )
95+ Base. depwarn (" `leftorth!` is deprecated , use `left_orth!` instead" , :leftorth! )
9696 haskey (kwargs, :alg ) || return left_orth! (t; kwargs... )
9797 alg = kwargs[:alg ]
9898 kind = _kindof (alg)
@@ -102,7 +102,7 @@ function leftorth!(t::AbstractTensorMap; kwargs...)
102102 throw (ArgumentError (" invalid leftorth kind" ))
103103end
104104function rightorth! (t:: AbstractTensorMap ; kwargs... )
105- Base. depwarn (" `rightorth!` is no longer supported , use `right_orth!` instead" , :rightorth! )
105+ Base. depwarn (" `rightorth!` is deprecated , use `right_orth!` instead" , :rightorth! )
106106 haskey (kwargs, :alg ) || return right_orth! (t; kwargs... )
107107 alg = kwargs[:alg ]
108108 kind = _kindof (alg)
@@ -115,23 +115,23 @@ end
115115# nullspaces
116116export leftnull, leftnull!, rightnull, rightnull!
117117function leftnull (t:: AbstractTensorMap ; kwargs... )
118- Base. depwarn (" `leftnull` is no longer supported , use `left_null` instead" , :leftnull )
118+ Base. depwarn (" `leftnull` is deprecated , use `left_null` instead" , :leftnull )
119119 return leftnull! (copy_oftype (t, factorisation_scalartype (leftnull, t)); kwargs... )
120120end
121121function leftnull (t:: AbstractTensorMap , p:: Index2Tuple ; kwargs... )
122- Base. depwarn (" `leftnull` is no longer supported , use `left_null` instead" , :leftnull )
122+ Base. depwarn (" `leftnull` is deprecated , use `left_null` instead" , :leftnull )
123123 return leftnull! (permutedcopy_oftype (t, factorisation_scalartype (leftnull, t), p); kwargs... )
124124end
125125function rightnull (t:: AbstractTensorMap ; kwargs... )
126- Base. depwarn (" `rightnull` is no longer supported , use `right_null` instead" , :rightnull )
126+ Base. depwarn (" `rightnull` is deprecated , use `right_null` instead" , :rightnull )
127127 return rightnull! (copy_oftype (t, factorisation_scalartype (rightnull, t)); kwargs... )
128128end
129129function rightnull (t:: AbstractTensorMap , p:: Index2Tuple ; kwargs... )
130- Base. depwarn (" `rightnull` is no longer supported , use `right_null` instead" , :rightnull )
130+ Base. depwarn (" `rightnull` is deprecated , use `right_null` instead" , :rightnull )
131131 return rightnull! (permutedcopy_oftype (t, factorisation_scalartype (rightnull, t), p); kwargs... )
132132end
133133function leftnull! (t:: AbstractTensorMap ; kwargs... )
134- Base. depwarn (" `left_null!` is no longer supported , use `left_null!` instead" , :leftnull! )
134+ Base. depwarn (" `left_null!` is deprecated , use `left_null!` instead" , :leftnull! )
135135 haskey (kwargs, :alg ) || return left_null! (t; kwargs... )
136136 alg = kwargs[:alg ]
137137 kind = _kindof (alg)
@@ -140,7 +140,7 @@ function leftnull!(t::AbstractTensorMap; kwargs...)
140140 throw (ArgumentError (" invalid leftnull kind" ))
141141end
142142function rightnull! (t:: AbstractTensorMap ; kwargs... )
143- Base. depwarn (" `rightnull!` is no longer supported , use `right_null!` instead" , :rightnull! )
143+ Base. depwarn (" `rightnull!` is deprecated , use `right_null!` instead" , :rightnull! )
144144 haskey (kwargs, :alg ) || return right_null! (t; kwargs... )
145145 alg = kwargs[:alg ]
146146 kind = _kindof (alg)
@@ -159,19 +159,19 @@ export eig!, eigh!, eigen, eigen!
159159 eigen! (permutedcopy_oftype (t, factorisation_scalartype (eigen, t), p); kwargs... ),
160160 false )
161161function eig (t:: AbstractTensorMap ; kwargs... )
162- Base. depwarn (" `eig` is no longer supported , use `eig_full` or `eig_trunc` instead" , :eig )
162+ Base. depwarn (" `eig` is deprecated , use `eig_full` or `eig_trunc` instead" , :eig )
163163 return haskey (kwargs, :trunc ) ? eig_trunc (t; kwargs... ) : eig_full (t; kwargs... )
164164end
165165function eig! (t:: AbstractTensorMap ; kwargs... )
166- Base. depwarn (" `eig!` is no longer supported , use `eig_full!` or `eig_trunc!` instead" , :eig! )
166+ Base. depwarn (" `eig!` is deprecated , use `eig_full!` or `eig_trunc!` instead" , :eig! )
167167 return haskey (kwargs, :trunc ) ? eig_trunc! (t; kwargs... ) : eig_full! (t; kwargs... )
168168end
169169function eigh (t:: AbstractTensorMap ; kwargs... )
170- Base. depwarn (" `eigh` is no longer supported , use `eigh_full` or `eigh_trunc` instead" , :eigh )
170+ Base. depwarn (" `eigh` is deprecated , use `eigh_full` or `eigh_trunc` instead" , :eigh )
171171 return haskey (kwargs, :trunc ) ? eigh_trunc (t; kwargs... ) : eigh_full (t; kwargs... )
172172end
173173function eigh! (t:: AbstractTensorMap ; kwargs... )
174- Base. depwarn (" `eigh!` is no longer supported , use `eigh_full!` or `eigh_trunc!` instead" , :eigh! )
174+ Base. depwarn (" `eigh!` is deprecated , use `eigh_full!` or `eigh_trunc!` instead" , :eigh! )
175175 return haskey (kwargs, :trunc ) ? eigh_trunc! (t; kwargs... ) : eigh_full! (t; kwargs... )
176176end
177177
@@ -180,17 +180,17 @@ export tsvd, tsvd!
180180@deprecate (tsvd (t:: AbstractTensorMap , p:: Index2Tuple ; kwargs... ),
181181 tsvd! (permutedcopy_oftype (t, factorisation_scalartype (tsvd, t), p); kwargs... ))
182182function tsvd (t:: AbstractTensorMap ; kwargs... )
183- Base. depwarn (" `tsvd` is no longer supported , use `svd_compact`, `svd_full` or `svd_trunc` instead" , :tsvd )
183+ Base. depwarn (" `tsvd` is deprecated , use `svd_compact`, `svd_full` or `svd_trunc` instead" , :tsvd )
184184 if haskey (kwargs, :p )
185- Base. depwarn (" p is no longer a supported kwarg, and should be specified through the truncation strategy" , :tsvd )
185+ Base. depwarn (" p is a deprecated kwarg, and should be specified through the truncation strategy" , :tsvd )
186186 kwargs = _drop_p (; kwargs... )
187187 end
188188 return haskey (kwargs, :trunc ) ? svd_trunc (t; kwargs... ) : svd_compact (t; kwargs... )
189189end
190190function tsvd! (t:: AbstractTensorMap ; kwargs... )
191- Base. depwarn (" `tsvd!` is no longer supported , use `svd_compact!`, `svd_full!` or `svd_trunc!` instead" , :tsvd! )
191+ Base. depwarn (" `tsvd!` is deprecated , use `svd_compact!`, `svd_full!` or `svd_trunc!` instead" , :tsvd! )
192192 if haskey (kwargs, :p )
193- Base. depwarn (" p is no longer a supported kwarg, and should be specified through the truncation strategy" , :tsvd! )
193+ Base. depwarn (" p is a deprecated kwarg, and should be specified through the truncation strategy" , :tsvd! )
194194 kwargs = _drop_p (; kwargs... )
195195 end
196196 return haskey (kwargs, :trunc ) ? svd_trunc! (t; kwargs... ) : svd_compact! (t; kwargs... )
0 commit comments