On Wednesday, November 20, 2013 10:54:29 AM UTC-8, Nils Bruin wrote:
> return [c div g for c in v] > Sorry, that's spelled [c // g for c in v] Incidentally, a typical vector of 20 integers has gcd 1 for its coefficients. If that happens a lot in your data, you should shortcut on gcd==1 to just return the original list/vector. Allocating the new integers/list/vector is probably the majority of the cost. -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.