On Tuesday, February 3, 2026 at 7:00:36 PM UTC+1 wrote:
I don't know about efficient, but in the species code I use
libgap.RightTransveral(group, subgroup):
def structures(self, *labels):
labels = _label_sets(self.parent()._arity, labels)
n = tuple([len(U) for U in labels])
S = _SymmetricGroup(sum(n)).young_subgroup(n)
l = [e for l in labels for e in l]
if self._mc == n:
for rep in libgap.RightTransversal(S, self._dis):
yield tuple(S(rep)._act_on_list_on_position(l))
Does this help?
Martin
Some quick experimenting seems to indicate that this is exactly what I need!
Thanks a lot!
Michel
On Tuesday, 3 February 2026 at 14:25:12 UTC+1 wrote:
Hi,
I have a permutation group (a Weyl group in fact) and a subgroup given by
explicit generators. I would like to iterate over representatives for the
cosets of this group. Is there an efficient way to do this in Sage?
I asked ChatGPT and it gave me all kinds of plausible looking commands,
none of which actually existed...
Thanks!
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/sage-support/9d836532-9097-423d-9994-9dbb2ccb27ean%40googlegroups.com.