add zero(RG::GroupRing)

This commit is contained in:
kalmar 2017-07-06 10:09:43 +02:00
parent 19f6906d33
commit db02dbb97c
1 changed files with 2 additions and 1 deletions

View File

@ -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, one import Base: convert, show, hash, ==, +, -, *, //, /, length, norm, rationalize, deepcopy_internal, getindex, setindex!, eltype, one, zero
############################################################################### ###############################################################################
# #
@ -188,6 +188,7 @@ end
eltype(X::GroupRingElem) = eltype(X.coeffs) eltype(X::GroupRingElem) = eltype(X.coeffs)
one(RG::GroupRing) = RG(RG.group()) one(RG::GroupRing) = RG(RG.group())
zero(RG::GroupRing) = RG()
############################################################################### ###############################################################################
# #