From 143695ed24514d864329806037f63a04fc90417c Mon Sep 17 00:00:00 2001 From: kalmar Date: Mon, 17 Jul 2017 10:12:09 +0200 Subject: [PATCH] Revert "parametrise central_projection by the type of character" This reverts commit 820517a04edec3eab21948b6ca01a8bb0527557b. --- src/Projections.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Projections.jl b/src/Projections.jl index f4bd66d..93b9816 100644 --- a/src/Projections.jl +++ b/src/Projections.jl @@ -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.coeffs = full(result.coeffs) for g in RG.basis - result[g] = chi(g) + result[g] = char(g) end dim = result[RG.group()] ord = Int(order(RG.group)) - return convert(T, (dim//ord))*result + return convert(T, (dim//ord)*result) end function rankOne_projections(G::PermutationGroup, T::Type=Rational{Int})