1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-08-01 06:31:23 +02:00

elem_type, parent_type, parent

This commit is contained in:
kalmar 2017-05-16 18:34:43 +02:00
parent 6dd130e789
commit 5d51146688

View File

@ -29,6 +29,11 @@ end
export GroupRing, GroupRingElem export GroupRing, GroupRingElem
elem_type(::GroupRing) = GroupRingElem
parent_type(::GroupRingElem) = GroupRing
parent(g::GroupRingElem) = g.parent
GroupRingElem{T}(c::AbstractVector{T}, A::GroupRing) = GroupRingElem{T}(c,A) GroupRingElem{T}(c::AbstractVector{T}, A::GroupRing) = GroupRingElem{T}(c,A)