/opt/imh-python/lib/python3.9/site-packages/numpy/core/include/numpy
NameSizeModeActions
random/-0755rm
arrayobject.h2820644editdlrm
arrayscalars.h39440644editdlrm
experimental_dtype_api.h155320644editdlrm
halffloat.h19590644editdlrm
ndarrayobject.h101830644editdlrm
ndarraytypes.h680090644editdlrm
noprefix.h68300644editdlrm
npy_1_7_deprecated_api.h43270644editdlrm
npy_3kcompat.h158830644editdlrm
npy_common.h376880644editdlrm
npy_cpu.h46290644editdlrm
npy_endian.h27860644editdlrm
npy_interrupt.h19480644editdlrm
npy_math.h189450644editdlrm
npy_no_deprecated_api.h6780644editdlrm
npy_os.h11200644editdlrm
numpyconfig.h53080644editdlrm
old_defines.h64050644editdlrm
ufuncobject.h120700644editdlrm
utils.h11850644editdlrm
_dtype_api.h166970644editdlrm
_neighborhood_iterator_imp.h18570644editdlrm
_numpyconfig.h8550644editdlrm
__multiarray_api.c121160644editdlrm
__multiarray_api.h615190644editdlrm
__ufunc_api.c17140644editdlrm
__ufunc_api.h124560644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/numpy/core/include/numpy/halffloat.h (1959B)
#ifndef NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_ #define NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_ #include #include #ifdef __cplusplus extern "C" { #endif /* * Half-precision routines */ /* Conversions */ float npy_half_to_float(npy_half h); double npy_half_to_double(npy_half h); npy_half npy_float_to_half(float f); npy_half npy_double_to_half(double d); /* Comparisons */ int npy_half_eq(npy_half h1, npy_half h2); int npy_half_ne(npy_half h1, npy_half h2); int npy_half_le(npy_half h1, npy_half h2); int npy_half_lt(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); /* faster *_nonan variants for when you know h1 and h2 are not NaN */ int npy_half_eq_nonan(npy_half h1, npy_half h2); int npy_half_lt_nonan(npy_half h1, npy_half h2); int npy_half_le_nonan(npy_half h1, npy_half h2); /* Miscellaneous functions */ int npy_half_iszero(npy_half h); int npy_half_isnan(npy_half h); int npy_half_isinf(npy_half h); int npy_half_isfinite(npy_half h); int npy_half_signbit(npy_half h); npy_half npy_half_copysign(npy_half x, npy_half y); npy_half npy_half_spacing(npy_half h); npy_half npy_half_nextafter(npy_half x, npy_half y); npy_half npy_half_divmod(npy_half x, npy_half y, npy_half *modulus); /* * Half-precision constants */ #define NPY_HALF_ZERO (0x0000u) #define NPY_HALF_PZERO (0x0000u) #define NPY_HALF_NZERO (0x8000u) #define NPY_HALF_ONE (0x3c00u) #define NPY_HALF_NEGONE (0xbc00u) #define NPY_HALF_PINF (0x7c00u) #define NPY_HALF_NINF (0xfc00u) #define NPY_HALF_NAN (0x7e00u) #define NPY_MAX_HALF (0x7bffu) /* * Bit-level conversions */ npy_uint16 npy_floatbits_to_halfbits(npy_uint32 f); npy_uint16 npy_doublebits_to_halfbits(npy_uint64 d); npy_uint32 npy_halfbits_to_floatbits(npy_uint16 h); npy_uint64 npy_halfbits_to_doublebits(npy_uint16 h); #ifdef __cplusplus } #endif #endif /* NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_ */