<div dir="ltr">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.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 11:34 AM, Stefan Otte <span dir="ltr"><<a href="mailto:stefan.otte@gmail.com" target="_blank">stefan.otte@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
so I propose the following.  I'll implement a new function `mdot`.<br>
Incorporating the changes in `dot` are unlikely. Later, one can still include<br>
the features in `dot` if desired.<br>
<br>
`mdot` will have a default parameter `optimize`.  If `optimize==True` the<br>
reordering of the multiplication is done.  Otherwise it simply chains the<br>
multiplications.<br>
<br>
I'll test and benchmark my implementation and create a pull request.<br>
<br>
Cheers,<br>
<div class="HOEnZb"><div class="h5"> Stefan<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div><br></div>