<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Le 28/06/2012 02:34, Nathaniel Smith a écrit :
    <blockquote
cite="mid:CAPJVwBkhYT2g2ZARuiKmrQjEwqJ9FDkMPhpsYCgFb+HcmYFWYA@mail.gmail.com"
      type="cite">
      <pre wrap="">Yes it does. If you want to avoid this extra copy, and have a
pre-existing output array, you can do:

np.add(a, b, out=c)</pre>
    </blockquote>
    And is there a temporary copy when using inplace operators like:<br>
    <br>
    <meta name="qrichtext" content="1">
    c = a.copy()<br>
    c += b
    <meta http-equiv="Content-Type" content="text/html;
      charset=ISO-8859-1">
    <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
    <br>
    Is there a temporary (c+b)  array which is then assigned to c, or is
    it really an inplace assignment as the operator +=  would suggest ?<br>
    <br>
    Pierre<br>
  </body>
</html>