generators of GroupRing (symmetric generating set)

This commit is contained in:
kalmar 2017-05-17 17:44:36 +02:00
parent 396f5b529c
commit 07cc7eff16
1 changed files with 6 additions and 0 deletions

View File

@ -160,6 +160,12 @@ function setindex!(X::GroupRingElem, value, g::GroupElem)
X.coeffs[RG.basis_dict[g]] = value
end
function generators(RG::GroupRing)
S = generators(RG.group)
S = unique([S..., [inv(s) for s in S]...])
return [RG(s) for s in S]
end
###############################################################################
#
# String I/O