diff options
Diffstat (limited to 'doc/source/reference/c-api.ufunc.rst')
-rw-r--r-- | doc/source/reference/c-api.ufunc.rst | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/doc/source/reference/c-api.ufunc.rst b/doc/source/reference/c-api.ufunc.rst index 384a69cf7..27977de99 100644 --- a/doc/source/reference/c-api.ufunc.rst +++ b/doc/source/reference/c-api.ufunc.rst @@ -234,18 +234,27 @@ structure. .. cfunction:: void PyUFunc_G_G(char** args, npy_intp* dimensions, npy_intp* steps, void* func) +.. cfunction:: void PyUFunc_j_j(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + +.. cfunction:: void PyUFunc_j_j_As_f_f(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + +.. cfunction:: void PyUFunc_j_j_As_d_d(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + Type specific, core 1-d functions for ufuncs where each calculation is obtained by calling a function taking one input argument and returning one output. This function is passed in ``func``. The letters correspond to dtypechar's of the supported - data types ( ``f`` - float, ``d`` - double, ``g`` - long double, - ``F`` - cfloat, ``D`` - cdouble, ``G`` - clongdouble). The - argument *func* must support the same signature. The _As_X_X - variants assume ndarray's of one data type but cast the values to - use an underlying function that takes a different data type. Thus, - :cfunc:`PyUFunc_f_f_As_d_d` uses ndarrays of data type :cdata:`NPY_FLOAT` - but calls out to a C-function that takes double and returns - double. + data types ( ``j`` - half, ``f`` - float, ``d`` - double, + ``g`` - long double, ``F`` - cfloat, ``D`` - cdouble, + ``G`` - clongdouble). The argument *func* must support the same + signature. The _As_X_X variants assume ndarray's of one data type + but cast the values to use an underlying function that takes a + different data type. Thus, :cfunc:`PyUFunc_f_f_As_d_d` uses + ndarrays of data type :cdata:`NPY_FLOAT` but calls out to a + C-function that takes double and returns double. .. cfunction:: void PyUFunc_ff_f_As_dd_d(char** args, npy_intp* dimensions, npy_intp* steps, void* func) @@ -271,6 +280,15 @@ structure. .. cfunction:: void PyUFunc_GG_G(char** args, npy_intp* dimensions, npy_intp* steps, void* func) +.. cfunction:: void PyUFunc_jj_j(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + +.. cfunction:: void PyUFunc_jj_j_As_ff_f(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + +.. cfunction:: void PyUFunc_jj_j_As_dd_d(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + Type specific, core 1-d functions for ufuncs where each calculation is obtained by calling a function taking two input arguments and returning one output. The underlying function to |