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_API_VERSION |
npy_half npy_double_to_half | ( | double | d | ) |
References d(), and npy_doublebits_to_halfbits().
Referenced by MyPyFloat_AsHalf(), PyUFunc_f_f_As_d_d(), 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 _floor_divide(), and PyUFunc_f_f().
npy_uint16 npy_floatbits_to_halfbits | ( | npy_uint32 | f | ) |
References npy_set_floatstatus_underflow().
Referenced by npy_float_to_half().
npy_half npy_half_copysign | ( | npy_half | x, |
npy_half | y | ||
) |
npy_half npy_half_divmod | ( | npy_half | h1, |
npy_half | h2, | ||
npy_half * | modulus | ||
) |
int npy_half_eq | ( | npy_half | h1, |
npy_half | h2 | ||
) |
int npy_half_eq_nonan | ( | npy_half | h1, |
npy_half | h2 | ||
) |
int npy_half_ge | ( | npy_half | h1, |
npy_half | h2 | ||
) |
int npy_half_gt | ( | npy_half | h1, |
npy_half | h2 | ||
) |
int npy_half_isfinite | ( | npy_half | h | ) |
int npy_half_isinf | ( | npy_half | h | ) |
int npy_half_isnan | ( | npy_half | h | ) |
Referenced by HALF_LT().
int npy_half_iszero | ( | npy_half | h | ) |
int npy_half_le | ( | npy_half | h1, |
npy_half | h2 | ||
) |
int npy_half_le_nonan | ( | npy_half | h1, |
npy_half | h2 | ||
) |
int npy_half_lt | ( | npy_half | h1, |
npy_half | h2 | ||
) |
int npy_half_lt_nonan | ( | npy_half | h1, |
npy_half | h2 | ||
) |
int npy_half_ne | ( | npy_half | h1, |
npy_half | h2 | ||
) |
npy_half npy_half_nextafter | ( | npy_half | x, |
npy_half | y | ||
) |
<
<
<
<
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_f_f_As_d_d().
float npy_half_to_float | ( | npy_half | h | ) |
References npy_halfbits_to_floatbits().
Referenced by _floor_divide(), PyUFunc_f_f(), and TIMEDELTA_setitem().
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().