Traversing through the conjugacy class representatives of the General Linear group.

82 Views Asked by At

Suppose I want to write an algorithm in GL(3,5), where my main loop actually traverses through the conjugacy class representatives of the group. Here is an example:

G:=GL(3,5);

cl:=ConjugacyClasses(G);

for g in cl do

    %body of the loop which involves some operation on g;

od;

Now, the compiler is returning some error message. I think that the main problem is probably that the elements in cl are not being treated as elements of the group and hence it is unable to perform any sort of group operation on the elements of cl. I would like to know the remedy for this.

Thank you in advance!

1

There are 1 best solutions below

9
On BEST ANSWER

The elemengs of cl are classes, not representatives. If you use

reps:=List(cl,Representative);

and then iterate

for g in reps

you will get the desired behavior.