mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2025-01-01 03:40:29 +01:00
one(GroupRing) returns multiplicative identity
This commit is contained in:
parent
e3fa702507
commit
92daac300b
@ -3,7 +3,7 @@ module GroupRings
|
|||||||
using Nemo
|
using Nemo
|
||||||
import Nemo: Group, GroupElem, Ring, RingElem, parent, elem_type, parent_type
|
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)
|
eltype(X::GroupRingElem) = eltype(X.coeffs)
|
||||||
|
|
||||||
|
one(RG::GroupRing) = RG(RG.group())
|
||||||
|
|
||||||
function generators(RG::GroupRing)
|
function generators(RG::GroupRing)
|
||||||
S = generators(RG.group)
|
S = generators(RG.group)
|
||||||
S = unique([S..., [inv(s) for s in S]...])
|
S = unique([S..., [inv(s) for s in S]...])
|
||||||
|
Loading…
Reference in New Issue
Block a user