On Sun, Feb 03, 2008 at 12:25:56PM -0700, Damian Eads wrote:
> On similar note, does the assignment

>        A = A * B

> create a new array with a new buffer to hold the result of A * B, and 
> assign A to refer to the new array?

Yes. Without a JIT, Python cannot know that A is present both on the RHS
and on the LHS of the equation.

If you want to modify in place A, you can do

A *= B

HTH,

Gaƫl
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to