| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../../dev/../reference/c-api/../c-api/config.html | [Back] [Original] |
When NumPy is built, information about system configuration is
recorded, and is made available for extension modules using NumPys C
API. These are mostly defined in numpyconfig.h (included in
ndarrayobject.h). The public symbols are prefixed by NPY_*.
NumPy also offers some functions for querying information about the
platform in use.
For private use, NumPy also constructs a config.h in the NumPy
include directory, which is not exported by NumPy (that is a python
extension which use the numpy C API will not see those symbols), to
avoid namespace pollution.
The NPY_SIZEOF_{CTYPE} constants are defined so that sizeof
information is available to the pre-processor.
sizeof(short)
sizeof(int)
sizeof(long)
sizeof(longlong) where longlong is defined appropriately on the platform.
sizeof(float)
sizeof(double)
sizeof(longdouble)
Size of a pointer void * and intptr_t/Py_intptr_t.
Size of a size_t on this platform (sizeof(size_t))
CPU architecture of the platform; only one of the above is defined.
Defined in numpy/npy_cpu.h
Portable alternatives to the endian.h macros of GNU Libc.
If big endian, NPY_BYTE_ORDER == NPY_BIG_ENDIAN, and
similarly for little endian architectures.
Defined in numpy/npy_endian.h.
Returns the endianness of the current platform.
One of NPY_CPU_BIG, NPY_CPU_LITTLE,
or NPY_CPU_UNKNOWN_ENDIAN.
| Web Proxy Viewer | New URL | Original Page |