Group algebras
As is natural, the basis of a group algebra
Creation
group_algebra Method
julia
group_algebra(K::Ring, G::Group; cached::Bool = true) -> GroupAlgebraReturn the group algebra of the group R[G].
Examples
julia
sourcejulia> QG = group_algebra(QQ, small_group(8, 5))
Group algebra
of generic group of order 8 with multiplication table
over rational fieldElements
Given a group algebra A and an element of a group g, the corresponding group algebra element can be constructed using the syntax A(g).
julia
julia> G = abelian_group([2, 2]); a = G([0, 1]);
julia> QG = group_algebra(QQ, G);
julia> x = QG(a)
[0, 0, 1, 0]Vice versa, one can obtain the coordinate of a group algebra element x with respect to a group element a using the syntax x[a].
julia
julia> x[a]
1It is also possible to create elements by specifying for each group element the corresponding coordinate either by a list of pairs or a dictionary:
julia
julia> QG(a => 2, zero(G) => 1) == 2 * QG(a) + 1 * QG(zero(G))
true
julia> QG(Dict(a => 2, zero(G) => 1)) == 2 * QG(a) + 1 * QG(zero(G))
true