[Numpy-discussion] Inplace remove some array rows

Dmitrey tmp50@ukr....
Sat Mar 12 11:43:34 CST 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),
   or
   numpy.take(a, indices, axis=0, out=a)

   will the operation be inplace?

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


More information about the NumPy-Discussion mailing list