numpy 2.0.0
|
#include "numpy/halffloat.h"
#define NPY_HALF_GENERATE_INVALID 1 |
#define NPY_HALF_GENERATE_OVERFLOW 1 |
#define NPY_HALF_GENERATE_UNDERFLOW 1 |
#define NPY_HALF_ROUND_TIES_TO_EVEN 1 |
#define NPY_NO_DEPRECATED_API |
npy_half npy_double_to_half | ( | double | d | ) |
References npy_doublebits_to_halfbits().
Referenced by MyPyFloat_AsHalf(), PyUFunc_e_e_As_f_f(), and TOTYPE().
npy_uint16 npy_doublebits_to_halfbits | ( | npy_uint64 | d | ) |
Referenced by npy_double_to_half().
npy_half npy_float_to_half | ( | float | f | ) |
References npy_floatbits_to_halfbits().
Referenced by _nextafter(), and PyUFunc_e_e().
npy_uint16 npy_floatbits_to_halfbits | ( | npy_uint32 | f | ) |
References npy_set_floatstatus_underflow().
Referenced by npy_float_to_half().
int npy_half_isfinite | ( | npy_half | h | ) |
int npy_half_isinf | ( | npy_half | h | ) |
int npy_half_isnan | ( | npy_half | h | ) |
Referenced by UNICODE_copyswap().
<
<
<
<
int npy_half_signbit | ( | npy_half | h | ) |
<
<
<
<
<
<
References NPY_HALF_NAN, NPY_HALF_PINF, npy_set_floatstatus_invalid(), and npy_set_floatstatus_overflow().
double npy_half_to_double | ( | npy_half | h | ) |
References npy_halfbits_to_doublebits().
Referenced by MyPyFloat_FromHalf(), and PyUFunc_e_e_As_f_f().
float npy_half_to_float | ( | npy_half | h | ) |
References npy_halfbits_to_floatbits().
Referenced by _nextafter(), and PyUFunc_e_e().
npy_uint64 npy_halfbits_to_doublebits | ( | npy_uint16 | h | ) |
<
<
<
Referenced by npy_half_to_double().
npy_uint32 npy_halfbits_to_floatbits | ( | npy_uint16 | h | ) |
<
<
<
Referenced by npy_half_to_float().