Re: [Numpy-discussion] Removing rows and columns of a matrix
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
Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen@cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais -------------------------------------------------------------------------------
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
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
participants (2)
-
Nils Wagner -
Perry Greenfield