[Numpy-discussion] Deleting a row from a matrix
Francesc Altet
faltet at carabos.com
Sat Aug 26 02:20:04 CDT 2006
Hi,
A Dissabte 26 Agost 2006 01:55, Robert Kern va escriure:
> Travis Oliphant wrote:
> > I've come up with adding the functions (not methods at this point)
> >
> > deletefrom
> > insertinto
> >
> > appendto (syntatic sugar for concatenate but with a separate argument
> > for the array and the extra stuff) --- is this needed?
> >
> > These functions will operate along a particular axis (default is axis=0
> > to match concatenate).
> >
> > Comments?
>
> I would drop appendto(). I also recommend leaving them as functions and not
> making methods from them. This will help prevent people from thinking that
> these modify the arrays in-place.
But there are already quite a few methods in NumPy that doesn't modify the
array in-place (swapaxes, flatten, ravel or squeeze, but I guess many more).
I'm personally an addict to encapsulate as much functionality as possible in
methods (but perhaps I'm biased by an insane use of TAB in ipython console).
Cheers,
--
>0,0< Francesc Altet http://www.carabos.com/
V V Cárabos Coop. V. Enjoy Data
"-"
More information about the Numpy-discussion
mailing list