$13 GRAYBYTE WORDPRESS FILE MANAGER $99

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/core/include/numpy/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/core/include/numpy//halffloat.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_
#define NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_

#include <Python.h>
#include <numpy/npy_math.h>

#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_ */

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 8.00 AM
root / root
0
libdivide
--
14 Aug 2025 9.24 PM
root / root
0755
random
--
14 Aug 2025 9.24 PM
root / root
0755
.doxyfile
0.057 KB
17 Apr 2025 8.10 PM
root / root
0644
__multiarray_api.h
60.077 KB
17 Apr 2025 8.10 PM
root / root
0644
__ufunc_api.h
12.164 KB
17 Apr 2025 8.10 PM
root / root
0644
_dtype_api.h
16.306 KB
17 Apr 2025 8.10 PM
root / root
0644
_neighborhood_iterator_imp.h
1.813 KB
17 Apr 2025 8.10 PM
root / root
0644
_numpyconfig.h
0.834 KB
17 Apr 2025 8.10 PM
root / root
0644
_numpyconfig.h.in
0.847 KB
17 Apr 2025 8.10 PM
root / root
0644
arrayobject.h
0.275 KB
17 Apr 2025 8.10 PM
root / root
0644
arrayscalars.h
3.852 KB
17 Apr 2025 8.10 PM
root / root
0644
experimental_dtype_api.h
15.168 KB
17 Apr 2025 8.10 PM
root / root
0644
halffloat.h
1.913 KB
17 Apr 2025 8.10 PM
root / root
0644
ndarrayobject.h
9.944 KB
17 Apr 2025 8.10 PM
root / root
0644
ndarraytypes.h
66.415 KB
17 Apr 2025 8.10 PM
root / root
0644
noprefix.h
6.67 KB
17 Apr 2025 8.10 PM
root / root
0644
npy_1_7_deprecated_api.h
4.226 KB
17 Apr 2025 8.10 PM
root / root
0644
npy_3kcompat.h
15.511 KB
17 Apr 2025 8.10 PM
root / root
0644
npy_common.h
36.805 KB
17 Apr 2025 8.10 PM
root / root
0644
npy_cpu.h
4.521 KB
17 Apr 2025 8.10 PM
root / root
0644
npy_endian.h
2.721 KB
17 Apr 2025 8.10 PM
root / root
0644
npy_interrupt.h
1.902 KB
17 Apr 2025 8.10 PM
root / root
0644
npy_math.h
18.501 KB
17 Apr 2025 8.10 PM
root / root
0644
npy_no_deprecated_api.h
0.662 KB
17 Apr 2025 8.10 PM
root / root
0644
npy_os.h
1.094 KB
17 Apr 2025 8.10 PM
root / root
0644
numpyconfig.h
5.184 KB
17 Apr 2025 8.10 PM
root / root
0644
old_defines.h
6.255 KB
17 Apr 2025 8.10 PM
root / root
0644
oldnumeric.h
0.878 KB
17 Apr 2025 8.10 PM
root / root
0644
ufuncobject.h
11.787 KB
17 Apr 2025 8.10 PM
root / root
0644
utils.h
1.157 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF