From 44e3c9c0b9960bcccd761517d27e30b8d0c32ae7 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Mon, 9 Apr 2018 11:10:57 +0200 Subject: [PATCH] add generator of characters for PermGroup, DirectProductGroup --- src/Projections.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Projections.jl b/src/Projections.jl index 0db9e54..5d0da91 100644 --- a/src/Projections.jl +++ b/src/Projections.jl @@ -54,6 +54,13 @@ for T in [PermCharacter, DirectProdCharacter] end end +characters(G::Generic.PermGroup) = (PermCharacter(p) for p in AllParts(G.n)) + +function characters(G::DirectProductGroup) + nfold_chars = Iterators.repeated(characters(G.group), G.n) + return (DirectProdCharacter(idx) for idx in Iterators.product(nfold_chars...)) +end + ############################################################################### # # Projections