Re: [Numpy-discussion] Inplace remove some array rows

2011-03-12 Thread David Warde-Farley
On 2011-03-12, at 12:43 PM, Dmitrey wrote: > 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-discussion] Inplace remove some array rows

2011-03-12 Thread Dmitrey
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)