On 04/29/2013 10:53 PM, Chris Smith wrote:
When you give a dictionary the keys are unordered and to be canonical, the keys are sorted.

What sort of expression are you wanting to do what type of substitution on? Maybe replace, xreplace or Transform are better matches for what you want to do.
--
You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


I am trying to speed up my code (geometric algebra). Instead of precalculating various multiplication tables (there are four types of multiplication *,^,|,<,>) and connections (for dealing with manifolds when needed) I would like to do the calculations on the basis multivectors (for an n-dimensional vector space there are 2**n bases so each multiplication table has 2**(2n) entries, and there are n*2**n connections, n for each basis multivector) only when they are needed for a particular operation and save the results for when they are needed for future operations (in the same code, not for future runs). Thus the idea of a dictionary that only adds entries that can be calculated from functions when they
are needed and not before.

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to