|
numpy
2.0.0
|
Go to the source code of this file.
| #define NPY_HALF_NAN (0x7e00u) |
Referenced by npy_half_spacing().
| #define NPY_HALF_NEGONE (0xbc00u) |
| #define NPY_HALF_NINF (0xfc00u) |
| #define NPY_HALF_NZERO (0x8000u) |
| #define NPY_HALF_ONE (0x3c00u) |
| #define NPY_HALF_PINF (0x7c00u) |
Referenced by npy_half_spacing().
| #define NPY_HALF_PZERO (0x0000u) |
| #define NPY_HALF_ZERO (0x0000u) |
| #define NPY_MAX_HALF (0x7bffu) |
| 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 | x, |
| npy_half | y, | ||
| 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().