mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-09-05 14:46:44 +02:00
one(GroupRing) returns multiplicative identity
This commit is contained in:
parent
e3fa702507
commit
92daac300b
@ -3,7 +3,7 @@ module GroupRings
|
||||
using Nemo
|
||||
import Nemo: Group, GroupElem, Ring, RingElem, parent, elem_type, parent_type
|
||||
|
||||
import Base: convert, show, hash, ==, +, -, *, //, /, length, norm, rationalize, deepcopy_internal, getindex, setindex!, eltype
|
||||
import Base: convert, show, hash, ==, +, -, *, //, /, length, norm, rationalize, deepcopy_internal, getindex, setindex!, eltype, one
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
@ -162,6 +162,8 @@ end
|
||||
|
||||
eltype(X::GroupRingElem) = eltype(X.coeffs)
|
||||
|
||||
one(RG::GroupRing) = RG(RG.group())
|
||||
|
||||
function generators(RG::GroupRing)
|
||||
S = generators(RG.group)
|
||||
S = unique([S..., [inv(s) for s in S]...])
|
||||
|
Loading…
Reference in New Issue
Block a user