1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-23 08:15:29 +01:00

Revert "parametrise central_projection by the type of character"

This reverts commit 820517a04e.
This commit is contained in:
kalmar 2017-07-17 10:12:09 +02:00
parent 820517a04e
commit 143695ed24

View File

@ -95,15 +95,15 @@ end
# #
############################################################################### ###############################################################################
function central_projection{F<:Function}(RG::GroupRing, chi::F, T::Type=Rational{Int}) function central_projection(RG::GroupRing, char::Function, T::Type=Rational{Int})
result = RG(T) result = RG(T)
result.coeffs = full(result.coeffs) result.coeffs = full(result.coeffs)
for g in RG.basis for g in RG.basis
result[g] = chi(g) result[g] = char(g)
end end
dim = result[RG.group()] dim = result[RG.group()]
ord = Int(order(RG.group)) ord = Int(order(RG.group))
return convert(T, (dim//ord))*result return convert(T, (dim//ord)*result)
end end
function rankOne_projections(G::PermutationGroup, T::Type=Rational{Int}) function rankOne_projections(G::PermutationGroup, T::Type=Rational{Int})