1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-08-08 07:53:53 +02:00

store only single factor and multiplicity in DirectProductGroup

This commit is contained in:
kalmar 2017-07-21 13:19:56 +02:00
parent a78e4ccea2
commit d02c5afc65

View File

@ -9,13 +9,14 @@ export DirectProductGroup, DirectProductGroupElem
###############################################################################
doc"""
DirectProductGroup(factors::Vector{Group}) <: Group
Implements direct product of groups as vector factors. The group operation is
DirectProductGroup(G::Group, n::Int) <: Group
Implements `n`-fold direct product of `G`. The group operation is
`*` distributed component-wise, with component-wise identity as neutral element.
"""
immutable DirectProductGroup{T<:Group} <: Group
factors::Vector{T}
group::T
n::Int
end
immutable DirectProductGroupElem{T<:GroupElem} <: GroupElem