From 72ea3f5e0ae8316222f744a3e46f9aa39151d25d Mon Sep 17 00:00:00 2001 From: kalmar Date: Thu, 8 Jun 2017 20:03:22 +0200 Subject: [PATCH] group together matrix/C*-representation functions --- OrbitDecomposition.jl | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/OrbitDecomposition.jl b/OrbitDecomposition.jl index 310a649..f98545e 100644 --- a/OrbitDecomposition.jl +++ b/OrbitDecomposition.jl @@ -88,14 +88,6 @@ function orbit_decomposition(G::Nemo.Group, E::Vector, rdict=GroupRings.reverse_ return orbits end -function matrix_repr(g::WreathProductElem, E, E_dict) - rep_matrix = spzeros(Int, length(E), length(E)) - for (i,e) in enumerate(E) - j = E_dict[g(e)] - rep_matrix[i,j] = 1 - end - return rep_matrix -end end @@ -103,8 +95,19 @@ end end end +############################################################################### +# +# Matrix- and C*-representations +# +############################################################################### +function matrix_repr(g::WreathProductElem, E, E_dict) + rep_matrix = spzeros(Int, length(E), length(E)) + for (i,e) in enumerate(E) + j = E_dict[g(e)] + rep_matrix[i,j] = 1 end + return rep_matrix end function Cstar_repr(x::GroupRingElem, matrix_reps)