mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-14 14:15:28 +01:00
add dim function for Characters
This commit is contained in:
parent
39bef16aa7
commit
0d20df8207
@ -22,6 +22,11 @@ end
|
||||
|
||||
Nemo.isone(p::GroupElem) = p == parent(p)()
|
||||
|
||||
function Nemo.dim(χ::PropertyT.PermCharacter)
|
||||
G = PermutationGroup(sum(χ.p))
|
||||
return χ(G())
|
||||
end
|
||||
|
||||
## NOTE: this works only for Z/2!!!!
|
||||
function (chi::DirectProdCharacter)(g::DirectProductGroupElem)
|
||||
return reduce(*, 1, ((-1)^isone(g.elts[j]) for j in 1:chi.i))
|
||||
|
Loading…
Reference in New Issue
Block a user