[Numpy-discussion] matrix multiplication

Charles R Harris charlesr.harris@gmail....
Fri Jun 5 17:30:45 CDT 2009


On Fri, Jun 5, 2009 at 4:02 PM, Alan G Isaac <aisaac@american.edu> wrote:

> On 6/5/2009 5:41 PM Chris Colbert apparently wrote:
> > well, it sounded like a good idea.
>
>
> I think something close to this would be possible:
> add dot as an array method.
>        A .dot(B) .dot(C)
> is not as pretty as
>        A * B * C
> but it is much better than
>        np.dot(np.dot(A,B),C)
>

I prefer using the evaluation operator, so that becomes

A(B)(C) or, changing the multiplication order a bit, A(B(C))

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090605/48dbfbd8/attachment.html 


More information about the Numpy-discussion mailing list