Skip to content

Commit

Permalink
Add tensor_product for two GAPGroupClassFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jul 25, 2024
1 parent 77a500e commit 346f54a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/Groups/group_characters.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ arithmetic operations:
where the group of `chi` is a subgroup of the group of `tbl`.

```@docs
scalar_product
scalar_product(chi::GAPGroupClassFunction, psi::GAPGroupClassFunction)
tensor_product(chi::GAPGroupClassFunction, psi::GAPGroupClassFunction)
coordinates(chi::GAPGroupClassFunction)
multiplicities_eigenvalues
induce(chi::GAPGroupClassFunction, tbl::GAPGroupCharacterTable)
Expand Down
11 changes: 11 additions & 0 deletions src/Groups/group_characters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2405,6 +2405,17 @@ function Base.:*(chi::GAPGroupClassFunction, psi::GAPGroupClassFunction)
return GAPGroupClassFunction(parent(chi), GapObj(chi) * GapObj(psi))
end

"""
tensor_product(chi::GAPGroupClassFunction, psi::GAPGroupClassFunction)
Return the pointwise product of `chi` and `psi`.
The resulting character is afforded by the tensor product of representations
corresponding to `chi` and `psi`, hence the name.
Alias for `chi * psi`.
"""
tensor_product(chi::GAPGroupClassFunction, psi::GAPGroupClassFunction) = chi * psi

Check warning on line 2417 in src/Groups/group_characters.jl

View check run for this annotation

Codecov / codecov/patch

src/Groups/group_characters.jl#L2417

Added line #L2417 was not covered by tests

function Base.zero(chi::GAPGroupClassFunction)
val = QQAbFieldElem(0)
return class_function(parent(chi), [val for i in 1:length(chi)])
Expand Down

0 comments on commit 346f54a

Please sign in to comment.