[Numpy-discussion] subclassing matrix

Stefan van der Walt stefan at sun.ac.za
Sat Jan 12 18:13:49 EST 2008


On Sat, Jan 12, 2008 at 01:24:31PM -0800, Basilisk96 wrote:

[...]

> When is __array_finalize__ called? By adding some print traces, I can
> see it's called every time an array is modified in any way i.e.,
> reshaped, transposed, etc., and also during operations like u+v, u-v,
> A*u. But it's not called during the call to numpy.cross. Why?

Take a look at

http://www.scipy.org/Subclasses

for more detail.

Regards
Stéfan



More information about the NumPy-Discussion mailing list