mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-12-29 11:00:28 +01:00
add parent_type(::Type{GroupRingElem})
This commit is contained in:
parent
6a22b91c1e
commit
19f6906d33
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user