[Numpy-discussion] suggestions for Matrix-related changes
a.u.r.e.l.i.a.n at gmx.net
Wed Jul 12 02:10:40 CDT 2006
On Wednesday 12 July 2006 02:07, Michael Sorich wrote:
> On 7/12/06, JJ <josh8912 at yahoo.com> wrote:
> > 2) It would be very convienient to have some simple way to delete
> > selected columns of a matrix. For example, in matlab the command is
> > X[:,[3,5,7]]= to delete the three selected columns. It would be nice
> > if such a command would also work with selections, as in X[:,A[0,:]<4] =
> > , where X and A are matrices.
> I like the current use of negative indices in numpy, but I do find
> myself missing the ability to easily make a copy of the array without
> certain indices.
Maybe use complex numbers?
>>> a = arange(10)
>>> print a[ 3j ]
[ 0 1 2 4 5 6 7 8 9 ]
More information about the Numpy-discussion