Ask Your Question

Revision history [back]

For future use to others, I have found a fix that works for my purposes (it isn't a true conversion). I was trying to generate a complex reflection group using gap3/chevie then do sage commands on that said group. The issue was that gap3 objects are not recognized by sage as appropriate objects for function input (where gap4 objects are).

How I got around this:

from sage.groups.perm_gps.pergroup_element import string_to_tuples
complexReflectGroup = gap3.ComplexReflectionGroup(2,2,2);
groupGenerators = [];
for generator in gap3.Generators(complexReflectGroup):
complexReflectGroup = PermutationGroup(groupGenerators);

With that code I can use my gap3 generated group with sage (through the conversion of the generators). I now can run sage commands on that group.