1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-11-19 06:30:29 +01:00

typed elem_type

This commit is contained in:
kalmar 2017-07-12 21:06:07 +02:00
parent 78eded0124
commit 6b84254416

View File

@ -28,7 +28,7 @@ end
#
###############################################################################
elem_type(G::DirectProductGroup) = DirectProductGroupElem
elem_type{T<:Group}(G::DirectProductGroup{T}) = DirectProductGroupElem{elem_type(first(G.factors))}
parent_type(::Type{DirectProductGroupElem}) = DirectProductGroup