[Numpy-discussion] performing operations in-place in numpy

Charles R Harris charlesr.harris at gmail.com
Wed Jul 8 18:30:05 EDT 2009


On Wed, Jul 8, 2009 at 4:17 PM, Citi, Luca <lciti at essex.ac.uk> wrote:

>
> > On thing to keep in mind is that the inputs might be different views of
> the
> > same array so the elements might accessed in an unexpected order.
>
> Only inputs owning their own data and with refcount 1 (i.e. no other array
> can be a view of it)
> are re-used as outputs.
> _____
>

In that case I don't see a problem offhand. That said, I haven't looked at
the code yet.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090708/9c566abd/attachment.html>


More information about the NumPy-Discussion mailing list