[Numpy-discussion] Inplace remove some array rows

Dmitrey tmp50 at ukr.net
Sat Mar 12 12:43:34 EST 2011

 hi all,
   currently I use
   a = array(m,n)
   a = delete(a, indices, 0) # delete some rows

   Can I somehow perform the operation in-place, without creating
   auxiliary array?
   If I'll use

   numpy.compress(condition, a, axis=0, out=a),
   numpy.take(a, indices, axis=0, out=a)

   will the operation be inplace?

   Thank you in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110312/f6e7d3b8/attachment.html>

More information about the NumPy-Discussion mailing list