We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
You can create NumPy [http://docs.scipy.org/doc/numpy/reference/c-api.ufunc.html ufuncs] easily using the following files: attachment:numpy_ufunc_api.pxd attachment:numpy_ufuncs.pxi
The following example makes a ufunc for calling the system "lgamma" function:
#!python include "numpy_ufuncs.pxi" cdef extern from "math.h": double lgammad "lgamma" (double) float lgammaf(float) long double lgammal(long double) lgamma = register_ufunc_fdg(lgammaf, lgammad, lgammal, "lgamma", "log gamma function", PyUFunc_None)