> There is also the MatrixSymbol class that may be better here. Quite interesting! Is there such a thing as a VectorSymbol as well? (I saw the `is_Vector` property here but never saw it True, neither for MatrixSymbols nor for DeferredVectors.)
--Nico On Wed, Aug 19, 2015 at 10:20 PM Jason Moore <[email protected]> wrote: > 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 <[email protected]> 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 <[email protected]> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> 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 [email protected]. >> To post to this group, send email to [email protected]. >> 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 a topic in the > Google Groups "sympy" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sympy/sOaXFcs7AXw/unsubscribe. > To unsubscribe from this group and all its topics, 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/CAP7f1Ah%3D1mTpUZL7QkMu6SEkcsriEFnVxgP92gi29Y%3D%2BhMdtww%40mail.gmail.com > <https://groups.google.com/d/msgid/sympy/CAP7f1Ah%3D1mTpUZL7QkMu6SEkcsriEFnVxgP92gi29Y%3D%2BhMdtww%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 [email protected]. To post to this group, send email to [email protected]. 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/CAK6Z60fD_WMz9D-VkPMhodRS%3DjkfMmhyAo%3D6i9sHFSjvgtPVUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
