Comment #19 on issue 1268 by jensen.oyvind: allow lambdify to take vectors and matrices are arguments
http://code.google.com/p/sympy/issues/detail?id=1268

Indeed, it is related. The latest incarnation of the tensor module is here: http://github.com/jegerjensen/sympy/blob/codegen_C4/sympy/tensor/indexed.py

The class IndexedBase in that branch works very much like DeferredVector, so out of curiousity I verified that it also works with lambdify(). However, instead of __get_item__ returning a Symbol like in DeferredVector, IndexedBase returns an Indexed instance. That object has named axes (represented by indices), and information about the array it represents, so it is logically different from the symbolic (scalar) components generated by DeferredVector.

There has to be a way to represent the scalar components of Indexed as well, but I have not figured out exactly how that should work. If there are still plans for a DeferredMatrix, it would be cool if the tensor module could play a role in that.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to