@@ -13,7 +13,7 @@ using FusionTensors:
1313 to_fusiontensor
1414using GradedUnitRanges: dual, gradedrange, space_isequal
1515using SymmetrySectors: O2, U1, SectorProduct, SU2
16- using TensorAlgebra: blockedperm , tuplemortar
16+ using TensorAlgebra: permmortar , tuplemortar
1717
1818include (" setup.jl" )
1919
@@ -35,7 +35,7 @@ include("setup.jl")
3535 ft2 = permutedims (ft1, ((1 , 2 ), (3 , 4 ))) # trivial with tuple of 2 tuples
3636 @test ft2 === ft1 # same object
3737
38- biperm = blockedperm (( 1 , 2 ), (3 , 4 ))
38+ biperm = permmortar ((( 1 , 2 ), (3 , 4 ) ))
3939 ft2 = permutedims (ft1, biperm) # trivial with biperm
4040 @test ft2 === ft1 # same object
4141
@@ -66,7 +66,7 @@ include("setup.jl")
6666 arr[1 : 2 , 4 : 5 , 5 : 5 , 1 : 2 ] .= 3.0
6767 arr[3 : 4 , 4 : 5 , 1 : 4 , 3 : 3 ] .= 4.0
6868 ft = to_fusiontensor (arr, codomain_legs, domain_legs)
69- biperm = blockedperm (( 3 ,), (2 , 4 , 1 ))
69+ biperm = permmortar ((( 3 ,), (2 , 4 , 1 ) ))
7070
7171 ftp = permutedims (ft, biperm)
7272 @test ftp ≈ naive_permutedims (ft, biperm)
@@ -90,13 +90,13 @@ include("setup.jl")
9090 @test ft0p ≈ ft0
9191
9292 @test permutedims (ft0, ((), ())) isa FusionTensor{Float64,0 }
93- @test permutedims (ft0, blockedperm (( ), ())) isa FusionTensor{Float64,0 }
93+ @test permutedims (ft0, permmortar ((( ), () ))) isa FusionTensor{Float64,0 }
9494 end
9595
9696 g = gradedrange ([U1 (0 ) => 1 , U1 (1 ) => 2 , U1 (2 ) => 3 ])
9797 v = zeros ((6 ,))
9898 v[1 ] = 1.0
99- biperm = blockedperm (( ), (1 ,))
99+ biperm = permmortar ((( ), (1 ,) ))
100100 ft1 = to_fusiontensor (v, (g,), ())
101101 ft2 = permutedims (ft1, biperm)
102102 @test isnothing (check_sanity (ft2))
137137 )
138138 g2b = dual (g2)
139139 for biperm in [
140- blockedperm ((2 , 1 ), (3 , 4 )), blockedperm ((3 , 1 ), (2 , 4 )), blockedperm ((3 , 1 , 4 ), (2 ,))
140+ permmortar (((2 , 1 ), (3 , 4 ))),
141+ permmortar (((3 , 1 ), (2 , 4 ))),
142+ permmortar (((3 , 1 , 4 ), (2 ,))),
141143 ]
142144 ft = to_fusiontensor (sds22, (g2, g2), (g2b, g2b))
143145 @test permutedims (ft, biperm) ≈ naive_permutedims (ft, biperm)
147149 @test permutedims (ft, biperm) ≈ naive_permutedims (ft, biperm)
148150 @test permutedims (adjoint (ft), biperm) ≈ naive_permutedims (adjoint (ft), biperm)
149151 end
150- for biperm in [blockedperm (( 1 , 2 , 3 , 4 ), ()), blockedperm (( ), (3 , 1 , 2 , 4 ))]
152+ for biperm in [permmortar ((( 1 , 2 , 3 , 4 ), ())), permmortar ((( ), (3 , 1 , 2 , 4 ) ))]
151153 ft = to_fusiontensor (sds22, (g2, g2), (g2b, g2b))
152154 @test permutedims (ft, biperm) ≈ naive_permutedims (ft, biperm)
153155 end
0 commit comments