Neal Becker wrote: > 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? > I don't think that it true. There would need to be some kind of idea of "complex-ness" that is tested. One way this could work is if your corresponding scalar inherited from the generic complex scalar type and then that was tested for.
-Travis O. _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion