mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-07-30 06:05:31 +02:00
(::GroupRing)() zero elt
This commit is contained in:
parent
ab0b6c871a
commit
933c578b8f
@ -83,6 +83,11 @@ end
|
|||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
function (RG::GroupRing)(T::Type=Int)
|
||||||
|
isdefined(RG, :basis) || throw("Complete the definition of GroupRing first")
|
||||||
|
return GroupRingElem(spzeros(T,length(RG.basis)), RG)
|
||||||
|
end
|
||||||
|
|
||||||
function (A::GroupRing)(X::GroupRingElem)
|
function (A::GroupRing)(X::GroupRingElem)
|
||||||
length(X) == length(A.basis) || throw("Can not coerce to $A: lengths differ")
|
length(X) == length(A.basis) || throw("Can not coerce to $A: lengths differ")
|
||||||
X.parent = A
|
X.parent = A
|
||||||
|
Loading…
Reference in New Issue
Block a user