On Friday, December 6, 2013 6:39:53 AM UTC-8, Tom wrote:
>
> (i.valuation(2) for i in srange(1,2^n)) 
>
> does the job -- though this can certainly be implemented better. 
>
Yes, I think in sage it should be spelled

(i.trailing_zero_bits() for i in srange(1,2^n)) 

The GMP implementation that is used doesn't look very sophisticated, 
though. We should really patch it to use DeBruijn sequences instead.

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

Reply via email to