numpy 2.0.0
PyArrayMapIterObject Struct Reference

#include <ndarraytypes.h>

Data Fields

PyObject_HEAD int numiter
npy_intp size
npy_intp index
int nd
npy_intp dimensions [NPY_MAXDIMS]
PyArrayIterObjectiters [NPY_MAXDIMS]
PyArrayIterObjectait
PyArrayIterObjectsubspace
int iteraxes [NPY_MAXDIMS]
npy_intp bscoord [NPY_MAXDIMS]
PyObject * indexobj
int consec
char * dataptr

Detailed Description

Store the information needed for fancy-indexing over an array

Field Documentation

flat Iterator for
underlying array
if subspace iteration, the these are the coordinates to the start of the subspace.
dimensions
creating obj
if subspace iteration, then this is the array of axes in the underlying array represented by the index objects

Referenced by _convert_obj().

index object
iterators
number of dims
PyObject_HEAD int PyArrayMapIterObject::numiter
Multi-iterator portion --- needs to be present in this order to work with PyArray_Broadcast
number of index-array
iterators
size of broadcasted
result
flat iterator for subspace (when numiter < nd)

The documentation for this struct was generated from the following file: