[Numpy-discussion] proposing a "beware of [as]matrix()" warning

Alan G Isaac aisaac@american....
Wed Apr 28 13:12:07 CDT 2010


On 4/28/2010 12:05 PM, Travis Oliphant wrote:
> A proposal was made to allow "calling a NumPy array" to infer dot
> product:
>
> a(b) is equivalent to dot(a,b)
>
> a(b)(c) would be equivalent to dot(dot(a,b),c)


Here is a related ticket that proposes a more
explicit alternative: adding a ``dot`` method
to ndarray.
http://projects.scipy.org/numpy/ticket/1456

fwiw,
Alan


More information about the NumPy-Discussion mailing list