mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-30 10:00:28 +01:00
parametrise central_projection by the type of character
This commit is contained in:
parent
05691b5202
commit
820517a04e
@ -95,15 +95,15 @@ end
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
function central_projection(RG::GroupRing, char::Function, T::Type=Rational{Int})
|
||||
function central_projection{F<:Function}(RG::GroupRing, chi::F, T::Type=Rational{Int})
|
||||
result = RG(T)
|
||||
result.coeffs = full(result.coeffs)
|
||||
for g in RG.basis
|
||||
result[g] = char(g)
|
||||
result[g] = chi(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})
|
||||
|
Loading…
Reference in New Issue
Block a user