1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-07-30 06:05:31 +02:00

add parent_type(::Type{GroupRingElem})

This commit is contained in:
kalmar 2017-07-06 10:06:17 +02:00
parent 6a22b91c1e
commit 19f6906d33

View File

@ -62,7 +62,8 @@ export GroupRing, GroupRingElem, complete, create_pm
elem_type(::GroupRing) = GroupRingElem
parent_type{T}(::GroupRingElem{T}) = GroupRing
parent_type(::GroupRingElem) = GroupRing
parent_type(::Type{GroupRingElem}) = GroupRing
parent{T}(g::GroupRingElem{T}) = g.parent