numpy
2.0.0
|
Go to the source code of this file.
#define generate_divbyzero_error | ( | ) | npy_set_floatstatus_divbyzero() |
#define generate_overflow_error | ( | ) | npy_set_floatstatus_overflow() |
#define NO_FLOATING_POINT_SUPPORT |
#define NPY_LOOP_BEGIN_THREADS |
#define NPY_LOOP_END_THREADS |
#define PyUFunc_None -1 |
Referenced by ufunc_frompyfunc().
#define PyUFunc_One 1 |
#define PyUFunc_ReorderableNone -2 |
#define PyUFunc_Zero 0 |
#define UFUNC_ACCUMULATE 1 |
#define UFUNC_CHECK_ERROR | ( | arg | ) |
do {if ((((arg)->obj & UFUNC_OBJ_NEEDS_API) && PyErr_Occurred()) || \ ((arg)->errormask && \ PyUFunc_checkfperr((arg)->errormask, \ (arg)->errobj, \ &(arg)->first))) \ goto fail;} while (0)
#define UFUNC_CHECK_STATUS | ( | ret | ) |
{ \ ret = 0; \ }
#define UFUNC_ERR_CALL 3 |
#define UFUNC_ERR_DEFAULT 0 |
#define UFUNC_ERR_DEFAULT2 |
(UFUNC_ERR_WARN << UFUNC_SHIFT_DIVIDEBYZERO) + \ (UFUNC_ERR_WARN << UFUNC_SHIFT_OVERFLOW) + \ (UFUNC_ERR_WARN << UFUNC_SHIFT_INVALID)
#define UFUNC_ERR_IGNORE 0 |
#define UFUNC_ERR_LOG 5 |
#define UFUNC_ERR_PRINT 4 |
#define UFUNC_ERR_RAISE 2 |
#define UFUNC_ERR_WARN 1 |
#define UFUNC_FPE_DIVIDEBYZERO 1 |
#define UFUNC_FPE_INVALID 8 |
#define UFUNC_FPE_OVERFLOW 2 |
#define UFUNC_FPE_UNDERFLOW 4 |
#define UFUNC_MASK_DIVIDEBYZERO 0x07 |
#define UFUNC_MASK_INVALID 0xfff |
#define UFUNC_MASK_OVERFLOW 0x3f |
#define UFUNC_MASK_UNDERFLOW 0x1ff |
#define UFUNC_NOFPE |
#define UFUNC_OBJ_ISOBJECT 1 |
#define UFUNC_OBJ_NEEDS_API 2 |
#define UFUNC_OUTER 3 |
#define UFUNC_PYVALS_NAME "UFUNC_PYVALS" |
Referenced by _extract_pyvals().
#define UFUNC_REDUCE 0 |
#define UFUNC_REDUCEAT 2 |
#define UFUNC_SHIFT_DIVIDEBYZERO 0 |
#define UFUNC_SHIFT_INVALID 9 |
#define UFUNC_SHIFT_OVERFLOW 3 |
#define UFUNC_SHIFT_UNDERFLOW 6 |
typedef int( PyUFunc_InnerLoopSelectionFunc)(struct _tagPyUFuncObject *ufunc, PyArray_Descr **dtypes, npy_intp *fixed_strides, PyUFunc_StridedInnerLoopFunc **out_innerloop, NpyAuxData **out_innerloopdata, int *out_needs_api) |
typedef int( PyUFunc_LegacyInnerLoopSelectionFunc)(struct _tagPyUFuncObject *ufunc, PyArray_Descr **dtypes, PyUFuncGenericFunction *out_innerloop, void **out_innerloopdata, int *out_needs_api) |
<blockquote> in most cases by the type resolution funciton for the same ufunc.</blockquote>
typedef struct _loop1d_info PyUFunc_Loop1d |
typedef int( PyUFunc_MaskedInnerLoopSelectionFunc)(struct _tagPyUFuncObject *ufunc, PyArray_Descr **dtypes, PyArray_Descr *mask_dtype, npy_intp *fixed_strides, npy_intp fixed_mask_stride, PyUFunc_MaskedStridedInnerLoopFunc **out_innerloop, NpyAuxData **out_innerloopdata, int *out_needs_api) |
typedef void( PyUFunc_MaskedStridedInnerLoopFunc)(char **dataptrs, npy_intp *strides, char *maskptr, npy_intp mask_stride, npy_intp count, NpyAuxData *innerloopdata) |
typedef void( PyUFunc_StridedInnerLoopFunc)(char **dataptrs, npy_intp *strides, npy_intp count, NpyAuxData *innerloopdata) |
typedef int( PyUFunc_TypeResolutionFunc)(struct _tagPyUFuncObject *ufunc, NPY_CASTING casting, PyArrayObject **operands, PyObject *type_tup, PyArray_Descr **out_dtypes) |
<blockquote> with the output parameters possibly NULL.</blockquote>
<blockquote> references to (ufunc->nin + ufunc->nout) new dtypes, one for each input and output. These dtypes should all be in native-endian format.</blockquote>
typedef void(* PyUFuncGenericFunction)(char **args, npy_intp *dimensions, npy_intp *strides, void *innerloopdata) |
typedef struct _tagPyUFuncObject PyUFuncObject |