[Numpy-discussion] subclass

Pierre GM pgmdevlist at gmail.com
Fri Dec 1 05:58:02 CST 2006


On Friday 01 December 2006 06:19, Lionel Roubeyrie wrote:
> Hi all,
> is it possible to subclass numpy.array to set extras functionalities and
> change the behavior of others? I can't find any docs on that.

Did you really look ;) ?
http://www.scipy.org/Subclasses

Check also the new implementation of MaskedArray, where masked arrays are 
implemented as subclass of ndarrays
http://projects.scipy.org/scipy/numpy/wiki/MaskedArray.

If you have some particular features in mind, let us know.
P.


More information about the Numpy-discussion mailing list