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)