[Numpy-discussion] Proposal: Chaining np.dot with mdot helper function
hoogendoorn.eelco at gmail.com
Thu Feb 20 06:41:42 EST 2014
If the standard semantics are not affected, and the most common
two-argument scenario does not take more than a single if-statement
overhead, I don't see why it couldn't be a replacement for the existing
np.dot; but others mileage may vary.
On Thu, Feb 20, 2014 at 11:34 AM, Stefan Otte <stefan.otte at gmail.com> wrote:
> so I propose the following. I'll implement a new function `mdot`.
> Incorporating the changes in `dot` are unlikely. Later, one can still
> the features in `dot` if desired.
> `mdot` will have a default parameter `optimize`. If `optimize==True` the
> reordering of the multiplication is done. Otherwise it simply chains the
> I'll test and benchmark my implementation and create a pull request.
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion