mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 18:15:29 +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.
|
`*` distributed component-wise, with component-wise identity as neutral element.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
type DirectProductGroup <: Group
|
immutable DirectProductGroup{T<:Group} <: Group
|
||||||
factors::Vector{Group}
|
factors::Vector{T}
|
||||||
operations::Vector{Function}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
type DirectProductGroupElem <: GroupElem
|
immutable DirectProductGroupElem{T<:GroupElem} <: GroupElem
|
||||||
elts::Vector{GroupElem}
|
elts::Vector{T}
|
||||||
parent::DirectProductGroup
|
|
||||||
|
|
||||||
DirectProductGroupElem{T<:GroupElem}(a::Vector{T}) = new(a)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user