In most (but not all) cases the arguments are directly passed to the constructor of matrices. I suppose that then sympification is not necessary. Am I right? After all I have type(Matrix( (1,) )[0]) == numbers.One.
I will sympify all arguments that are not implicitly sympified and also will change the bare numbers. On 23 September 2011 01:03, Chris Smith <[email protected]> wrote: > I would be in favor of it. Things are well documented. I would change > all bare numbers like 1 and 0 to Integer(1) and Integer(0) and then > you won't have the issue of having to use real numbers. The general > SymPy method for passed parameters that we want to be treated > "symbolically" and not be subject to integer or floating results is to > sympify them, so between lines 233 and 234, for example, I would write > `args = sympyify(args)` so if someone passed d as 3 the 3 would become > Integer(3). > > -- > 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. > > -- 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.
