[SciPy-user] RE: [Numpy-discussion] Removing rows and columns of a matrix

Perry Greenfield perry at stsci.edu
Mon Jul 28 10:34:16 EDT 2003


> 
> Konrad Hinsen schrieb:
> > 
> > >  How can I delete a column/row from a matrix.
> > 
> > As an in-place operation, not at all. To get a copy of an array 
> with some
> > columns/rows removed, use Numeric.take.
> > 
> The in-place operation of matlab is a nice feature. Is it thinkable to
> have this
> in scipy or numarray at a later date ?
> 
> Nils
> 
Speaking for numarray, no, not really. But I wonder what is
really done for matlab. Either they have a more complex representation
of arrays, or all they really are doing is making a new copy of
the array and giving you the impression it is being done in place.
After all you are changing the size and structure of the array.

Perry




More information about the SciPy-User mailing list