Module npyffi

Module npyffi 

Source
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 ndarray object (ABI version).

Functions§

get_type_object
Get a pointer of the type object associated with ty.
is_numpy_2
Returns whether the runtime numpy version is 2.0 or greater.