[Numpy-discussion] Writing new ufuncs

Anne Archibald peridot.faceted at gmail.com
Sun May 11 14:04:13 EDT 2008


Hi,

Suppose I have a C function,
double logsum(double a, double b);
What is needed to produce a ufunc object whose elementwise operation
is done by calling this function?

Also, is there a way to take a python function and automatically make
a ufunc out of it? (No, vectorize doesn't implement reduce(),
accumulate(), reduceat(), or outer().)

Thanks,
Anne



More information about the NumPy-Discussion mailing list