<div dir="ltr">Hi,<div><br></div><div>It's to be expected. You are overwritten one of your input vector while it is still being used.</div><div style>So not a numpy bug ;)</div><div style><br></div><div style>Matthieu</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/23 Pierre Haessig <span dir="ltr"><<a href="mailto:pierre.haessig@crans.org" target="_blank">pierre.haessig@crans.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Nicolas,<br>
<br>
Le 23/05/2013 15:45, Nicolas Rougier a écrit :<br>
<div class="im">> if I use either a or b as output, results are wrong (and nothing in the dot documentation prevents me from doing this):<br>
><br>
> a = np.array([[1, 2], [3, 4]])<br>
> b = np.array([[1, 2], [3, 4]])<br>
> np.dot(a,b,out=a)<br>
><br>
> -> array([[ 6, 20],<br>
>           [15, 46]])<br>
><br>
><br>
</div><div class="im">> Can anyone confirm this behavior ? (tested using numpy 1.7.1)<br>
</div>I just reproduced the same weird results with numpy 1.6.2<br>
<br>
best,<br>
Pierre<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>
<br></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>