numpy
2.0.0
|
#include <numpy/npy_math.h>
#include <numpy/npy_common.h>
#include "arrayobject.h"
#include "__ufunc_api.h"
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_MinusOne 2 |
#define PyUFunc_None -1 |
Referenced by addUfuncs(), and 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 = npy_clear_floatstatus(); \ }
#define UFUNC_ERR_CALL 3 |
#define UFUNC_ERR_DEFAULT |
(UFUNC_ERR_WARN << UFUNC_SHIFT_DIVIDEBYZERO) + \ (UFUNC_ERR_WARN << UFUNC_SHIFT_OVERFLOW) + \ (UFUNC_ERR_WARN << UFUNC_SHIFT_INVALID)
Referenced by PyUFunc_GenericReduction().
#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_INVALID NPY_FPE_INVALID |
#define UFUNC_FPE_OVERFLOW NPY_FPE_OVERFLOW |
#define UFUNC_FPE_UNDERFLOW NPY_FPE_UNDERFLOW |
#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" |
#define UFUNC_REDUCE 0 |
Referenced by ufunc_geterr().
#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_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 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 |