Skip to content

Commit dd3b112

Browse files
committed
update orth interface in tests
1 parent 4f2bc30 commit dd3b112

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/tensors/factorizations.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ for V in spacelist
149149
@test isisometric(w)
150150
@test isposdef(p)
151151

152-
w, p = @constinferred left_orth(t; alg = TensorKit.LeftOrthAlgorithm{:polar})
152+
w, p = @constinferred left_orth(t; alg = :polar)
153153
@test w * p t
154154
@test isisometric(w)
155155
end
@@ -163,7 +163,7 @@ for V in spacelist
163163
@test isisometric(wᴴ; side = :right)
164164
@test isposdef(p)
165165

166-
p, wᴴ = @constinferred right_orth(t; alg = TensorKit.RightOrthAlgorithm{:polar})
166+
p, wᴴ = @constinferred right_orth(t; alg = :polar)
167167
@test p * wᴴ t
168168
@test isisometric(wᴴ; side = :right)
169169
end
@@ -194,19 +194,19 @@ for V in spacelist
194194
@test b s′[c]
195195
end
196196

197-
v, c = @constinferred left_orth(t; alg = TensorKit.LeftOrthAlgorithm{:svd})
197+
v, c = @constinferred left_orth(t; alg = :svd)
198198
@test v * c t
199199
@test isisometric(v)
200-
201-
c, vᴴ = @constinferred right_orth(t; alg = TensorKit.RightOrthAlgorithm{:svd})
200+
201+
c, vᴴ = @constinferred right_orth(t; alg = :svd)
202202
@test c * vᴴ t
203203
@test isisometric(v; side = :right)
204204

205-
N = @constinferred left_null(t; kind = :svd)
205+
N = @constinferred left_null(t; alg = :svd)
206206
@test isisometric(N)
207207
@test norm(N' * t) 0 atol = 100 * eps(norm(t))
208208

209-
Nᴴ = @constinferred right_null(t; kind = :svd)
209+
Nᴴ = @constinferred right_null(t; alg = :svd)
210210
@test isisometric(Nᴴ; side = :right)
211211
@test norm(t * Nᴴ') 0 atol = 100 * eps(norm(t))
212212
end

0 commit comments

Comments
 (0)