Module array

Source
Expand description

Low-Level binding for Array API

Note that NumPy’s low-level allocation functions PyArray_{malloc,realloc,free} are not part of this module. The reason is that they would be re-exports of the PyMem_Raw{Malloc,Realloc,Free} functions from PyO3, but those are not unconditionally exported, i.e. they are not available when using the limited Python C-API.

Structs§

PyArrayAPI
See PY_ARRAY_API for more.

Enums§

NpyTypes
All type objects exported by the NumPy API.

Statics§

PY_ARRAY_API
A global variable which stores a ‘capsule’ pointer to Numpy Array API.

Functions§

PyArray_Check
Checks that op is an instance of PyArray or not.
PyArray_CheckExact
Checks that op is an exact instance of PyArray or not.