There is also the MatrixSymbol class that may be better here. The DeferredVector was created with a very narrow need for the lambdify functions, I wouldn't recommend using it for anything other.
Jason moorepants.info +01 530-601-9791 On Wed, Aug 19, 2015 at 12:57 PM, Aaron Meurer <asmeu...@gmail.com> wrote: > It doesn't look like there is. DeferredVector just works by creating > Symbol('x[0]'). I think for the use-case it was designed for, this is fine. > You probably want to be using Indexed and IndexedBase instead. > > Aaron Meurer > > On Wed, Aug 19, 2015 at 6:07 AM, Nico <nico.schloe...@gmail.com> wrote: > >> After defining a vector `x` and one of its components, say `x0`, >> ``` >> import sympy >> x = sympy.DeferredVector('x') >> x0 = x[0] >> ``` >> is there any way to relate `x0` back to `x`? I.e., I'm looking for a >> Boolean function that returns `True` for the question "Is x0 a component of >> x?" >> >> -- >> 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 sympy+unsubscr...@googlegroups.com. >> To post to this group, send email to sympy@googlegroups.com. >> Visit this group at http://groups.google.com/group/sympy. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sympy/906550a7-f11d-4ccd-a097-0f47f1fff0a0%40googlegroups.com >> <https://groups.google.com/d/msgid/sympy/906550a7-f11d-4ccd-a097-0f47f1fff0a0%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 sympy+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > Visit this group at http://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/CAKgW%3D6Lw%3D5K%3DpG0pijtff1wv-%3DW3cS650PN3pN%2BPQ_EQtaPR4w%40mail.gmail.com > <https://groups.google.com/d/msgid/sympy/CAKgW%3D6Lw%3D5K%3DpG0pijtff1wv-%3DW3cS650PN3pN%2BPQ_EQtaPR4w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAP7f1Ah%3D1mTpUZL7QkMu6SEkcsriEFnVxgP92gi29Y%3D%2BhMdtww%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.