Skip to content

Commit f2803c8

Browse files
committed
adapt to TensorAlgebra conventions
1 parent b2a6964 commit f2803c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/fusiontensor/fusiontensoraxes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ TensorAlgebra.BlockedTuple(fta::FusionTensorAxes) = fta.outer_axes
7171

7272
TensorAlgebra.trivial_axis(fta::FusionTensorAxes) = trivial_axis(sector_type(fta))
7373

74-
TensorAlgebra.length_codomain(fta::FusionTensorAxes) = length(codomain(fta))
74+
TensorAlgebra.length_domain(fta::FusionTensorAxes) = length(domain(fta))
7575

7676
# ================================== Base interface ======================================
7777

test/test_contraction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ end
7878

7979
ft5 = contract((1, 2, 5), ft1, (1, 2, 3, 4), ft2, (3, 4, 5))
8080
@test isnothing(check_sanity(ft5))
81-
@test ndims_codomain(ft5) === 0
82-
@test ndims_domain(ft5) === 3
81+
@test ndims_codomain(ft5) === 3
82+
@test ndims_domain(ft5) === 0
8383
@test permutedims(ft5, (1, 2), (3,)) ft4
8484

8585
ft6 = contract(tuplemortar(((1, 2), (5,))), ft1, (1, 2, 3, 4), ft2, (3, 4, 5))

0 commit comments

Comments
 (0)