Le 28/06/2012 02:34, Nathaniel Smith a écrit : > 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) And is there a temporary copy when using inplace operators like:
c = a.copy() c += b 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 ? Pierre
signature.asc
Description: OpenPGP digital signature
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion