On Sat, Jun 9, 2012 at 11:55 PM, Aleksandar Makelov <[email protected]> wrote: > > Also, there was a discussion about the checks that are performed every > time we construct a Permutation object - whether all numbers from 0 to > n-1 are present and the arguments provided are the way they should be. > They tend to greatly slow down the construction of a Permutation > object; on the other hand, it might be helpful to keep them in order > to quickly spot if you're doing something stupid. And there are fast > factory functions for constructing permutations that skip these > checks, like new_from_array_form. But it seems that users might also > want to skip the checks if they know what they're doing and are > working with permutations of sizes in the millions.
I guess giving the users the possibility to control this by setting a flag somewhere is the most canonical approach, that also works greatly in a wide range of circumstances. Sergiu -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
