On Jan 28, 3:44 am, Nikolas Tezak <[email protected]> wrote: > Hi, > > I am wondering if it were in principle possible to create subclass of > Symbol, that could handle array indices, so that at a later time > (after having performed symbolic calculations) I could just substitute > a numpy array in for that symbol. > > e.g. (10 + a[:,0] *a[:,1]).subst(a, np.array([[...]])
Nikolas, Not being familiar with numpy, I'm not sure what your expression should expand to. Could you give me a concrete example with an array of [1, 2, 3]? /chris -- 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.
