[Pyrex] Subclassing Numeric arrays

khinsen at cea.fr khinsen at cea.fr
Wed May 11 18:21:29 CEST 2005


On May 11, 2005, at 18:11, David M. Cooke wrote:

> If you make that a method named __array__, Numeric will call it
> automatically when it wants an array:

I know, but that's not my goal. In the previous Python implementation, 
the internal array was available through the attribute "array", so I 
needed to make the Pyrex version compatible. I don't see much use in 
having Numeric convert the vector into an array. The few array 
operations that make sense on 3d vectors are already provided as 
methods.

Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Laboratoire Léon Brillouin, CEA Saclay,
91191 Gif-sur-Yvette Cedex, France
Tel.: +33-1 69 08 79 25
Fax: +33-1 69 08 82 61
E-Mail: khinsen at cea.fr
---------------------------------------------------------------------




More information about the Pyrex mailing list