From d02c5afc6520aea3b7879d5960df68d617e7903f Mon Sep 17 00:00:00 2001 From: kalmar Date: Fri, 21 Jul 2017 13:19:56 +0200 Subject: [PATCH] store only single factor and multiplicity in DirectProductGroup --- src/DirectProducts.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/DirectProducts.jl b/src/DirectProducts.jl index 1ff2ef9..fc74356 100644 --- a/src/DirectProducts.jl +++ b/src/DirectProducts.jl @@ -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