By the way, if at some point MatrixSymbol starts supporting this, DefferedVector could probably use it as well.
On 1 November 2012 19:36, Stefan Krastanov <[email protected]> wrote: > This is unrelated to the previous question about matrix expressions. > > How can I do the following > > >>>> p = MatrixSymbol('p', 2, 1) >>>> p[0].subs(p, Matrix([5, 6])) > 5 >>>> p[x].subs(p, Matrix([5, 6])).subs(x, 0) > 5 > > The first one is more important for me than the second one. -- 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.
