diff --git a/src/GroupRings.jl b/src/GroupRings.jl index d8ea9f3..6f38294 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -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