<div dir="ltr">In my point of view, you should never use an output argument equal to an input argument. It can impede a lot of optimizations.<div><br></div><div style>Matthieu</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/5/23 Nicolas Rougier <span dir="ltr"><<a href="mailto:Nicolas.Rougier@inria.fr" target="_blank">Nicolas.Rougier@inria.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
><br>
> Sure, that's clearly what's going on, but numpy shouldn't let you<br>
> silently shoot yourself in the foot like that. Re-using input as<br>
> output is a very common operation, and usually supported fine.<br>
> Probably we should silently make a copy of any input(s) that overlap<br>
> with the output? For high-dimensional dot, buffering temprary<br>
> subspaces would still be more memory efficient than anything users<br>
> could reasonably accomplish by hand.<br>
<br>
<br>
<br>
</div>Also, from a user point of view it is difficult to sort out which functions currently allow 'out=a' or  out=b' since nothing in the 'dot' documentation warned me about such problem.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Nicolas<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<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><br clear="all"><div><br></div>-- <br>Information System Engineer, Ph.D.<br>Blog: <a href="http://matt.eifelle.com" target="_blank">http://matt.eifelle.com</a><span style="padding-right:16px;width:16px;height:16px"></span><span style="padding-right:16px;width:16px;height:16px"></span><br>
LinkedIn: <a href="http://www.linkedin.com/in/matthieubrucher" target="_blank">http://www.linkedin.com/in/matthieubrucher</a><span style="padding-right:16px;width:16px;height:16px"></span><br>Music band: <a href="http://liliejay.com/" target="_blank">http://liliejay.com/</a><span style="padding-right:16px;width:16px;height:16px"></span><br>
<span style="padding-right:16px;width:16px;height:16px"></span>
</div>