[Numpy-discussion] Can't add user defined complex types

Neal Becker ndbecker2@gmail....
Wed Mar 19 07:44:32 CDT 2008


In arrayobject.c, various complex functions (e.g., array_imag_get) use:
PyArray_ISCOMPLEX -> PyTypeNum_ISCOMPLEX, 
which is hard coded to 2 predefined types :(

If PyArray_ISCOMPLEX allowed user-defined types, I'm guessing functions such
as array_imag_get would just work?



More information about the Numpy-discussion mailing list