Expand description
Low-Level bindings for NumPy C API.
This module provides FFI bindings to [NumPy C API], implementing access to the NumPy array and ufunc functionality. This binding is compatible with ABI v2 and the target API is v1.15 to ensure the compatibility with the older NumPy version. See the official NumPy documentation for more details about API compatibility.
Re-exports§
pub use self::array::*;pub use self::flags::*;pub use self::objects::*;pub use self::types::*;pub use self::ufunc::*;
Modules§
- array
- Low-Level binding for Array API
- flags
- objects
- Low-Lebel binding for NumPy C API C-objects
- types
- ufunc
- Low-Level binding for UFunc API
Enums§
- NpyTypes
- All type objects exported by the NumPy API.
Constants§
- NPY_
CPU_ BIG - CPU is big-endian.
- NPY_
CPU_ LITTLE - CPU is little-endian.
- NPY_
CPU_ UNKNOWN_ ENDIAN - Unknown CPU endianness.
- NPY_
FEATURE_ VERSION - The current version of C API.
- NPY_
FEATURE_ VERSION_ STRING - The string representation of current version C API.
- NPY_
VERSION - The current version of the
ndarrayobject (ABI version).
Functions§
- get_
type_ ⚠object - Get a pointer of the type object associated with
ty. - is_
numpy_ 2 - Returns whether the runtime
numpyversion is 2.0 or greater.