visual changes to central projection

This commit is contained in:
kalmar 2017-07-09 14:55:19 +02:00
parent 94fd8f0bf9
commit 78490e6ca8
1 changed files with 4 additions and 2 deletions

View File

@ -68,9 +68,11 @@ end
function central_projection(RG::GroupRing, char::Function, T::Type=Rational{Int})
result = RG(T)
for g in RG.basis
result[g] = char(inv(g))
result[g] = char(g)
end
return convert(T, char(RG.group())//Int(order(RG.group))*result)
dim = char(RG.group())
ord = Int(order(RG.group))
return convert(T, (dim//ord)*result)
end
function rankOne_projections(G::PermutationGroup, T::Type=Rational{Int})