I implemented something similar for permutations 'cause I needed it:

http://hg.sagemath.org/sage-main/src/f0ee3538887fe739601babb54e177ec5e1133b7a/sage/combinat/permutation_cython.pyx?at=default

On Wed, Dec 4, 2013 at 1:52 PM, Nathann Cohen <nathann.co...@gmail.com> wrote:
> Helloooooo everybody !
>
> I got an email from a Sage user who wants to enumerate something, and I'd
> need to generate a Gray Code in order to make it faster. And it looks like
> Sage cannot do that from my google searches. I would like to list all the
> subsets of a Set in a "Gray Ordering". Actually, I would like to know which
> bit changes at each step. Aaaaaand well. Is there anywhere ?
>
> If it is not in Sage yet 1) that is shameful for us 2) where would you like
> to see it if I implement it ?
>
> I warn you, there will be bitwise C operations somewhere and a Python class
> above to expose it :-P
>
> Thanks !
>
> Nathann
>
> P.S. : If you answer this message, *PLEASE* also answer on sage-devel.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-combinat-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-combinat-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-combinat-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-combinat-devel.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to