1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-07-17 10:55:33 +02:00

concrete updates to elem_type, parent_type

This commit is contained in:
kalmar 2017-07-21 13:36:04 +02:00
parent fa996d68fb
commit a6f0685313

View File

@ -45,9 +45,11 @@ end
# #
############################################################################### ###############################################################################
elem_type(::WreathProduct) = WreathProductElem elem_type{T<:Group}(G::WreathProduct{T}) =
WreathProductElem{G.N.n, elem_type(T)}
parent_type(::WreathProductElem) = WreathProduct parent_type{T<:GroupElem}(::WreathProductElem{T}) =
WreathProduct{parent_type(T)}
parent(g::WreathProductElem) = g.parent parent(g::WreathProductElem) = g.parent