Most of the time I need to work with a fixed order of the elements of the
group.
I am working on representation theory, and when defining the regular
representation,
the elements of the group are used as an ordered basis of a vector space,
so I need
a fixed order of the elements, associated with the group.

I guess then my question is if the output of list(G.generate()) still needs
to be sorted
to guarantee the fixed order, or I can do without it.

Best regards.

On Thu, May 14, 2020 at 12:14 PM Aaron Meurer <[email protected]> wrote:

> If you are using list() to get all the elements, it seems prudent to
> just sort them. But it also seems like it would be useful to have an
> iterator that always gives the same order, for cases where you don't
> want to list all the elements.
>
> Aaron Meurer
>
> On Thu, May 14, 2020 at 3:32 AM S.Y. Lee <[email protected]> wrote:
> >
> > You should sort the arguments before passing to PermutationGroup.
> >
> > On Thursday, May 14, 2020 at 5:07:10 PM UTC+9, Rafael wrote:
> >>
> >>
> >> If G is a permutation group, then since G.elements is a set, I cannot
> >> expect that list(G.elements) always lists the elements in the same
> >> order. Can I expect that list(G.generate()) lists the elements always in
> >> the same order?
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sympy" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/aa59cc49-de7e-4275-890e-b418acbc55fa%40googlegroups.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAKgW%3D6LAy06GS%3DgyfnjSeTgSuS8a3MjUyxAvdKhjXcDSxYwnTA%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CALLcm6PWyD18W5-bSotyy_Z6wKpUnQ%2BY0mG4NmffXwbh%2BeQ0wQ%40mail.gmail.com.

Reply via email to