[Numpy-discussion] ufunc for user-defined type

Neal Becker ndbecker2@gmail....
Fri Feb 22 06:29:22 CST 2008


Now that I have my user-defined type, I want to add some funcs.
According to the numpy book, I need to use:

PyUFunc_RegisterLoopForType

The book says I first need a ufunc.  The only way I see to create one is

PyUFunc_FromFuncAndData.

Is the the correct procedure?

I wonder, because PyUFunc_FromFuncAndData requires 'type', and 'type' is
char, but user-defined types start at 256, which doesn't fit in a char,
which gives a compile warning.



More information about the Numpy-discussion mailing list