On Mar 19, 2009, at 4:40 PM, Gabriel Gellner wrote: > Has anyone subclassed a numpy.ndarray in Cython? Or is there a way > to do > something like this to get method calls fast for a derived type? I > am thinking > of things like speeding up MaskedArray's or simpler subclasses like > adding some metadata, but wanting all the other ndarray semantic in > place. > > It is not obvious to me that this is possible (due to the __new__ > overloading > needed, or if it would actually make things faster). If, on the > other hand this > has been done somewhere, I would love to look at the source! > > As always, thanks for any tips.
I'm not aware of anyone that has done this, but you might try asking on the Python lists about the implications of subclassing this just in Python. I'd imagine the issues would be largely the same. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
