[Numpy-discussion] Adding an ndarray.dot method
Charles R Harris
Thu Apr 29 19:52:45 CDT 2010
On Thu, Apr 29, 2010 at 1:30 PM, Pauli Virtanen <firstname.lastname@example.org> wrote:
> Wed, 28 Apr 2010 14:12:07 -0400, Alan G Isaac wrote:
> > Here is a related ticket that proposes a more explicit alternative:
> > adding a ``dot`` method to ndarray.
> > http://projects.scipy.org/numpy/ticket/1456
> I kind of like this idea. Simple, obvious, and leads
> to clear code:
> or in another multiplication order,
> And here's an implementation:
> I think I'm going to apply this, unless someone complains, as I
> don't see any downsides (except maybe adding one more to the
> huge list of methods ndarray already has).
That should do it. I was going to link directly to the code in
multiarraymodule, maybe break it out into a separate dot.c file, but the
call to the python function gets to the goal with less effort.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion