Definitely. And it should also have a docstring.

By the way, this is not the only problem with that class.  See
http://groups.google.com/group/sympy/browse_thread/thread/9f9934d7b596ea4a.
 It needs to subclass from Expr.

Aaron Meurer

On Thu, Nov 10, 2011 at 8:10 AM, [email protected]
<[email protected]> wrote:
> I'm wrong, it's used and the tests show why one would want this, but the
> lack of docstring makes it hard to understand. Shouldn't this be mentioned
> at least in lambdify with some examples?
>
> On 10 November 2011 16:01, [email protected]
> <[email protected]> wrote:
>>
>> Hi,
>>
>> While trying to wrap my head around lambdify I have found this commit:
>>
>> commit bbddfc4e479f3387a5d839c237459c6f9578d4d3
>> Author: Andrew Straw <[email protected]>
>> Date:   Sat Jan 17 14:38:34 2009 -0800
>>
>>     DeferredVector implementation, allowing lambdification using arbitrary
>> vectors
>>
>>  sympy/matrices/__init__.py        |    2 +-
>>  sympy/matrices/matrices.py        |   11 +++++++++++
>>  sympy/printing/str.py             |    3 +++
>>  sympy/test_external/test_numpy.py |   28 ++++++++++++++++++++++++++++
>>  4 files changed, 43 insertions(+), 1 deletions(-)
>>
>> grep 'DeferredVector' -ir sympy/*
>> sympy/external/tests/test_numpy.py:    X=sympy.DeferredVector('X')
>> sympy/matrices/matrices.py:class DeferredVector(object):
>> sympy/matrices/__init__.py:     list2numpy, matrix2numpy, DeferredVector,
>> block_diag, symarray, ShapeError,
>> sympy/printing/str.py:    def _print_DeferredVector(self, expr):
>> sympy/printing/codeprinter.py:    _print_DeferredVector =
>> _print_not_supported
>>
>>
>> It seems it's completely unused. Should this be removed?
>
> --
> 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.
>

-- 
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.

Reply via email to