From 45696aac34dd5e2b113b261ac7f70cea2416831c Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 6 Jun 2017 16:19:46 +0200 Subject: [PATCH] move Cstar_repr --- OrbitDecomposition.jl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/OrbitDecomposition.jl b/OrbitDecomposition.jl index 0265af3..f96a410 100644 --- a/OrbitDecomposition.jl +++ b/OrbitDecomposition.jl @@ -162,14 +162,6 @@ function central_projection(RG::GroupRing, char::Function, T::Type=Rational{Int} return convert(T, char(RG.group())//Int(order(RG.group))*result) end -function Cstar_repr(x::GroupRingElem, matrix_reps) - res = zeros(matrix_reps[1]) - for i in 1:length(parent(x).basis) - res += x.coeffs[i]*matrix_reps[i] - end - return res -end - function rankOne_projections(G::PermutationGroup, T::Type=Rational{Int}) RG = GroupRing(G) projections = [central_projection(RG, χ, T) for χ in chars(G)] @@ -229,6 +221,14 @@ function rankOne_projections(BN::WreathProducts.WreathProduct, T::Type=Rational{ return all_projs end +function Cstar_repr(x::GroupRingElem, matrix_reps) + res = zeros(matrix_reps[1]) + for i in 1:length(parent(x).basis) + res += x.coeffs[i]*matrix_reps[i] + end + return res +end + function orthSVD(M::AbstractMatrix) M = full(M) # matrixRank = rank(M)