@@ -269,39 +269,39 @@ function LinearAlgebra.isposdef(t::AbstractTensorMap, (p₁, p₂)::Index2Tuple)
269269end
270270
271271function tsvd (t:: AbstractTensorMap ; kwargs... )
272- tcopy = copy! ( similar ( t, float (scalartype (t))), t )
272+ tcopy = copy_oftype ( t, float (scalartype (t)))
273273 return tsvd! (tcopy; kwargs... )
274274end
275275function leftorth (t:: AbstractTensorMap ; alg:: OFA = QRpos (), kwargs... )
276- tcopy = copy! ( similar ( t, float (scalartype (t))), t )
276+ tcopy = copy_oftype ( t, float (scalartype (t)))
277277 return leftorth! (tcopy; alg= alg, kwargs... )
278278end
279279function rightorth (t:: AbstractTensorMap ; alg:: OFA = LQpos (), kwargs... )
280- tcopy = copy! ( similar ( t, float (scalartype (t))), t )
280+ tcopy = copy_oftype ( t, float (scalartype (t)))
281281 return rightorth! (tcopy; alg= alg, kwargs... )
282282end
283283function leftnull (t:: AbstractTensorMap ; alg:: OFA = QR (), kwargs... )
284- tcopy = copy! ( similar ( t, float (scalartype (t))), t )
284+ tcopy = copy_oftype ( t, float (scalartype (t)))
285285 return leftnull! (tcopy; alg= alg, kwargs... )
286286end
287287function rightnull (t:: AbstractTensorMap ; alg:: OFA = LQ (), kwargs... )
288- tcopy = copy! ( similar ( t, float (scalartype (t))), t )
288+ tcopy = copy_oftype ( t, float (scalartype (t)))
289289 return rightnull! (tcopy; alg= alg, kwargs... )
290290end
291291function LinearAlgebra. eigen (t:: AbstractTensorMap ; kwargs... )
292- tcopy = copy! ( similar ( t, float (scalartype (t))), t )
292+ tcopy = copy_oftype ( t, float (scalartype (t)))
293293 return eigen! (tcopy; kwargs... )
294294end
295295function eig (t:: AbstractTensorMap ; kwargs... )
296- tcopy = copy! ( similar ( t, float (scalartype (t))), t )
296+ tcopy = copy_oftype ( t, float (scalartype (t)))
297297 return eig! (tcopy; kwargs... )
298298end
299299function eigh (t:: AbstractTensorMap ; kwargs... )
300- tcopy = copy! ( similar ( t, float (scalartype (t))), t )
300+ tcopy = copy_oftype ( t, float (scalartype (t)))
301301 return eigh! (tcopy; kwargs... )
302302end
303303function LinearAlgebra. isposdef (t:: AbstractTensorMap )
304- tcopy = copy! ( similar ( t, float (scalartype (t))), t )
304+ tcopy = copy_oftype ( t, float (scalartype (t)))
305305 return isposdef! (tcopy)
306306end
307307
0 commit comments