diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-12-01 20:12:18 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-12-01 20:12:18 -0700 |
commit | 2ee163942a7461b14f53523dadbda7b4e5e18efd (patch) | |
tree | 39b447663a83c021c34b8cdf32a3644e1bfe9ebc /doc/source/reference/c-api.ufunc.rst | |
parent | af84876fac13ac2e4e44ac0cae599fe9d6e68643 (diff) | |
parent | c6f8dbbd240ada8d0edd0527cd218cfc46deec41 (diff) | |
download | numpy-2ee163942a7461b14f53523dadbda7b4e5e18efd.tar.gz |
Merge branch 'm-paradox-implement_half_dtype'
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..f299251cb 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_e_e(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + +.. cfunction:: void PyUFunc_e_e_As_f_f(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + +.. cfunction:: void PyUFunc_e_e_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 ( ``e`` - 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_ee_e(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + +.. cfunction:: void PyUFunc_ee_e_As_ff_f(char** args, npy_intp* dimensions, + npy_intp* steps, void* func) + +.. cfunction:: void PyUFunc_ee_e_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 |