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

David Warde-Farley dwf at cs.toronto.edu
Wed Apr 28 13:30:00 EDT 2010


On 2010-04-28, at 12:05 PM, Travis Oliphant wrote:

> a(b) is equivalent to dot(a,b)
> 
> a(b)(c) would be equivalent to dot(dot(a,b),c)
> 
> This seems rather reasonable.

Indeed, and it leads to a rather pleasant way of permuting syntax to change the order of operations, i.e. a(b(c)) vs. a(b)(c).

David


More information about the NumPy-Discussion mailing list