#include <numpy/npy_math.h>
#include "arrayobject.h"
#include "__ufunc_api.h"
Go to the source code of this file.
Define Documentation
#define generate_divbyzero_error |
( |
| ) |
npy_set_floatstatus_divbyzero() |
THESE MACROS ARE DEPRECATED. Use npy_set_floatstatus_* in the npymath library.
#define generate_overflow_error |
( |
| ) |
npy_set_floatstatus_overflow() |
#define NO_FLOATING_POINT_SUPPORT |
This code checks the IEEE status flags in a platform-dependent way
Adapted from Numarray
OSF/Alpha (Tru64) ---------------------------------------------
#define NPY_LOOP_BEGIN_THREADS |
#define NPY_LOOP_END_THREADS |
#define UFUNC_ACCUMULATE 1 |
#define UFUNC_CHECK_ERROR |
( |
|
arg | ) |
|
Value: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 | ) |
|
#define UFUNC_ERR_DEFAULT 0 |
Error mode that avoids look-up (no checking)
#define UFUNC_ERR_DEFAULT2 |
Value:
Default user error mode
#define UFUNC_ERR_IGNORE 0 |
#define UFUNC_ERR_PRINT 4 |
#define UFUNC_ERR_RAISE 2 |
#define UFUNC_FPE_DIVIDEBYZERO 1 |
- platform-dependent code translates floating point
- status to an integer sum of these values
#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 |
Make sure it gets defined if it isn't already
!Py_UFUNCOBJECT_H
#define UFUNC_OBJ_ISOBJECT 1 |
#define UFUNC_OBJ_NEEDS_API 2 |
#define UFUNC_PYVALS_NAME "UFUNC_PYVALS" |
#define UFUNC_SHIFT_DIVIDEBYZERO 0 |
#define UFUNC_SHIFT_INVALID 9 |
#define UFUNC_SHIFT_OVERFLOW 3 |
#define UFUNC_SHIFT_UNDERFLOW 6 |
Typedef Documentation
- A linked-list of function information for
- user-defined 1-d loops.