Subclassing Numpy Arrays?
David M. Cooke
cookedm+news at physics.mcmaster.ca
Fri Nov 22 13:51:14 EST 2002
At some point, mclin at ctgi.com (Jon McLin) wrote:
> I have an application wherein I need to subclass Numpy arrays. This
> does not appear doable, at least directly. I can obviously create my
> own python wrapper class around arrays to enable subclassing, but this
> seems like a lot of work. especially given the on-going type/class
> unification. Can anyone provide insight into the likelihood and
> timeframe for subclassable array types in Numpy, or point me in a
> productive direction?
You should take a look at numarray, which is slated to be the
successor to Numpy.
http://stsdas.stsci.edu/numarray/index.html
What are you doing that requires subclassing?
--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca
More information about the Python-list
mailing list