mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-24 18:05:27 +01:00
type DirectProductGroup/Elems after type of single factor
This limits the scope of DirectProductGroup/Elems to pure direct products
This commit is contained in:
parent
b07550cd37
commit
8631e5d16b
@ -14,16 +14,12 @@ Implements direct product of groups as vector factors. The group operation is
|
||||
`*` distributed component-wise, with component-wise identity as neutral element.
|
||||
"""
|
||||
|
||||
type DirectProductGroup <: Group
|
||||
factors::Vector{Group}
|
||||
operations::Vector{Function}
|
||||
immutable DirectProductGroup{T<:Group} <: Group
|
||||
factors::Vector{T}
|
||||
end
|
||||
|
||||
type DirectProductGroupElem <: GroupElem
|
||||
elts::Vector{GroupElem}
|
||||
parent::DirectProductGroup
|
||||
|
||||
DirectProductGroupElem{T<:GroupElem}(a::Vector{T}) = new(a)
|
||||
immutable DirectProductGroupElem{T<:GroupElem} <: GroupElem
|
||||
elts::Vector{T}
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user