Thu 2017-09-14 18:06:48 UTC, Martin R:

> almost by accident, I just noticed the following:
>
> [...]
>
> Is there any drawback to the faster method?

No! Good that you tested and found what works faster.
Sorry if anything I said was misleading.

Are you working on speeding up the 'to_matrix' and
'to_alternating_sign_matrix' methods of permutations?

Comparing the current state of these methods
(in Sage 8.1.beta5) to the functions you provided, I get:

sage: %timeit [to_matrix_1(pi) for pi in Permutations(8)]
1 loop, best of 3: 1.34 s per loop
sage: %timeit [to_matrix_2(pi) for pi in Permutations(8)]
1 loop, best of 3: 2.75 s per loop
sage: %timeit [pi.to_matrix() for pi in Permutations(8)]
1 loop, best of 3: 2.74 s per loop
sage: %timeit [pi.to_alternating_sign_matrix() for pi in Permutations(8)]
1 loop, best of 3: 14.1 s per loop

Thank you for your work!

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to