mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-14 14:15:28 +01:00
add generator of characters for PermGroup, DirectProductGroup
This commit is contained in:
parent
11365bf5b2
commit
44e3c9c0b9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user