@@ -63,11 +63,11 @@ println("------------------------------------")
6363 @test @constinferred (sectortype (V)) == Trivial
6464 @test ((@constinferred sectors (V)). .. ,) == (Trivial (),)
6565 @test length (sectors (V)) == 1
66- @test @constinferred (TensorKit . hassector (V, Trivial ()))
66+ @test @constinferred (TK . hassector (V, Trivial ()))
6767 @test @constinferred (dim (V)) == d == @constinferred (dim (V, Trivial ()))
6868 @test dim (@constinferred (zerospace (V))) == 0
6969 @test (sectors (zerospace (V))... ,) == ()
70- @test @constinferred (TensorKit . axes (V)) == Base. OneTo (d)
70+ @test @constinferred (TK . axes (V)) == Base. OneTo (d)
7171 @test ℝ^ d == ℝ[](d) == CartesianSpace (d) == typeof (V)(d)
7272 W = @constinferred ℝ^ 1
7373 @test @constinferred (unitspace (V)) == W == unitspace (typeof (V))
@@ -109,11 +109,11 @@ println("------------------------------------")
109109 @test @constinferred (sectortype (V)) == Trivial
110110 @test ((@constinferred sectors (V)). .. ,) == (Trivial (),)
111111 @test length (sectors (V)) == 1
112- @test @constinferred (TensorKit . hassector (V, Trivial ()))
112+ @test @constinferred (TK . hassector (V, Trivial ()))
113113 @test @constinferred (dim (V)) == d == @constinferred (dim (V, Trivial ()))
114114 @test dim (@constinferred (zerospace (V))) == 0
115115 @test (sectors (zerospace (V))... ,) == ()
116- @test @constinferred (TensorKit . axes (V)) == Base. OneTo (d)
116+ @test @constinferred (TK . axes (V)) == Base. OneTo (d)
117117 @test ℂ^ d == Vect[Trivial](d) == Vect[](Trivial () => d) == ℂ[](d) == typeof (V)(d)
118118 W = @constinferred ℂ^ 1
119119 @test @constinferred (unitspace (V)) == W == unitspace (typeof (V))
@@ -151,10 +151,10 @@ println("------------------------------------")
151151 @test isdual (V' )
152152 @test ! isdual (conj (V))
153153 @test isdual (conj (V' ))
154- @test ! TensorKit . isconj (V)
155- @test ! TensorKit . isconj (V' )
156- @test TensorKit . isconj (conj (V))
157- @test TensorKit . isconj (conj (V' ))
154+ @test ! TK . isconj (V)
155+ @test ! TK . isconj (V' )
156+ @test TK . isconj (conj (V))
157+ @test TK . isconj (conj (V' ))
158158 @test isa (V, VectorSpace)
159159 @test isa (V, ElementarySpace)
160160 @test ! isa (InnerProductStyle (V), HasInnerProduct)
@@ -163,20 +163,20 @@ println("------------------------------------")
163163 @test @constinferred (dual (V)) != @constinferred (conj (V)) != V
164164 @test @constinferred (field (V)) == ℂ
165165 @test @constinferred (sectortype (V)) == Trivial
166- @test @constinferred (TensorKit . hassector (V, Trivial ()))
166+ @test @constinferred (TK . hassector (V, Trivial ()))
167167 @test @constinferred (dim (V)) == d == @constinferred (dim (V, Trivial ()))
168- @test @constinferred (TensorKit . axes (V)) == Base. OneTo (d)
168+ @test @constinferred (TK . axes (V)) == Base. OneTo (d)
169169 end
170170
171- @timedtestset " ElementarySpace: $(TensorKit . type_repr (Vect[I])) " for I in sectorlist
171+ @timedtestset " ElementarySpace: $(TK . type_repr (Vect[I])) " for I in sectorlist
172172 if Base. IteratorSize (values (I)) === Base. IsInfinite ()
173173 set = unique (vcat (unit (I), [randsector (I) for k in 1 : 10 ]))
174174 gen = (c => 2 for c in set)
175175 else
176176 gen = (values (I)[k] => (k + 1 ) for k in 1 : length (values (I)))
177177 end
178178 V = GradedSpace (gen)
179- @test eval (Meta. parse (TensorKit . type_repr (typeof (V)))) == typeof (V)
179+ @test eval (Meta. parse (TK . type_repr (typeof (V)))) == typeof (V)
180180 @test eval (Meta. parse (sprint (show, V))) == V
181181 @test eval (Meta. parse (sprint (show, V' ))) == V'
182182 @test V' == GradedSpace (gen; dual = true )
@@ -222,12 +222,12 @@ println("------------------------------------")
222222 @test @constinferred (field (V)) == ℂ
223223 @test @constinferred (sectortype (V)) == I
224224 slist = @constinferred sectors (V)
225- @test @constinferred (TensorKit . hassector (V, first (slist)))
225+ @test @constinferred (TK . hassector (V, first (slist)))
226226 @test @constinferred (dim (V)) == sum (dim (s) * dim (V, s) for s in slist)
227227 @test @constinferred (reduceddim (V)) == sum (dim (V, s) for s in slist)
228228 @constinferred dim (V, first (slist))
229229 if hasfusiontensor (I)
230- @test @constinferred (TensorKit . axes (V)) == Base. OneTo (dim (V))
230+ @test @constinferred (TK . axes (V)) == Base. OneTo (dim (V))
231231 end
232232 @test @constinferred (⊕ (V, zerospace (V))) == V
233233 @test @constinferred (⊕ (V, V)) == Vect[I](c => 2 dim (V, c) for c in sectors (V))
@@ -398,7 +398,7 @@ println("------------------------------------")
398398
399399 @timedtestset " HomSpace" begin
400400 for (V1, V2, V3, V4, V5) in (Vtr, Vℤ₃, VSU₂)
401- W = TensorKit . HomSpace (V1 ⊗ V2, V3 ⊗ V4 ⊗ V5)
401+ W = TK . HomSpace (V1 ⊗ V2, V3 ⊗ V4 ⊗ V5)
402402 @test W == (V3 ⊗ V4 ⊗ V5 → V1 ⊗ V2)
403403 @test W == (V1 ⊗ V2 ← V3 ⊗ V4 ⊗ V5)
404404 @test W' == (V1 ⊗ V2 → V3 ⊗ V4 ⊗ V5)
@@ -415,7 +415,7 @@ println("------------------------------------")
415415 @test W == deepcopy (W)
416416 @test W == @constinferred permute (W, ((1 , 2 ), (3 , 4 , 5 )))
417417 @test permute (W, ((2 , 4 , 5 ), (3 , 1 ))) == (V2 ⊗ V4' ⊗ V5' ← V3 ⊗ V1' )
418- @test (V1 ⊗ V2 ← V1 ⊗ V2) == @constinferred TensorKit . compose (W, W' )
418+ @test (V1 ⊗ V2 ← V1 ⊗ V2) == @constinferred TK . compose (W, W' )
419419 @test (V1 ⊗ V2 ← V3 ⊗ V4 ⊗ V5 ⊗ unitspace (V5)) ==
420420 @constinferred (insertleftunit (W)) ==
421421 @constinferred (insertrightunit (W))
@@ -435,5 +435,5 @@ println("------------------------------------")
435435 @test_throws BoundsError insertleftunit (one (V1) ← V1, 0 )
436436 end
437437 end
438- TensorKit . empty_globalcaches! ()
438+ TK . empty_globalcaches! ()
439439end
0 commit comments