Skip to content

Commit 7342477

Browse files
committed
better names
1 parent 260760f commit 7342477

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/fusiontensor/base_interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Base.:*(ft::FusionTensor, x::Number) = x * ft
1313
function Base.:*(left::FusionTensor, right::FusionTensor)
1414
checkaxes_dual(domain_axes(left), codomain_axes(right))
1515
new_data_matrix = data_matrix(left) * data_matrix(right)
16-
return fusiontensor(new_data_matrix, codomain_axes(left), domain_axes(right))
16+
return to_fusiontensor(new_data_matrix, codomain_axes(left), domain_axes(right))
1717
end
1818

1919
Base.:+(ft::FusionTensor) = ft

src/fusiontensor/fusiontensor.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function promote_sector_type(legs)
135135
end
136136

137137
# initialize with already computed data_matrix
138-
function fusiontensor(
138+
function to_fusiontensor(
139139
mat::AbstractMatrix,
140140
codomain_legs::Tuple{Vararg{AbstractGradedUnitRange}},
141141
domain_legs::Tuple{Vararg{AbstractGradedUnitRange}},
@@ -163,7 +163,7 @@ function FusionTensor(
163163
nondual_col_axis, domain_trees_to_ranges_mapping = fuse_axes(S, dual.(domain_legs))
164164

165165
mat = initialize_data_matrix(elt, row_axis, nondual_col_axis)
166-
tree_to_block_mapping = intersect_sectors(
166+
tree_to_block_mapping = intersect_codomain_domain(
167167
codomain_trees_to_ranges_mapping, domain_trees_to_ranges_mapping
168168
)
169169
return FusionTensor(mat, codomain_legs, domain_legs, tree_to_block_mapping)
@@ -214,7 +214,7 @@ function to_blockindexrange(b1::BlockIndexRange{1}, b2::BlockIndexRange{1})
214214
return Block(Block.(t))[to_block_indices.(t)...]
215215
end
216216

217-
function intersect_sectors(
217+
function intersect_codomain_domain(
218218
codomain_trees_to_ranges_mapping::Dict{<:SectorFusionTree,<:BlockIndexRange{1}},
219219
domain_trees_to_ranges_mapping::Dict{<:SectorFusionTree,<:BlockIndexRange{1}},
220220
)

0 commit comments

Comments
 (0)