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

Referenced by _nonzero_indices().

if subspace iteration, the these are the coordinates to the start of the subspace.

Referenced by _nonzero_indices().

creating obj

Referenced by _nonzero_indices().

if subspace iteration, then this is the array of axes in the underlying array represented by the index objects

Referenced by _nonzero_indices(), and PyArray_GetMap().

number of dims

Referenced by _nonzero_indices().

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

Referenced by _nonzero_indices().

size of broadcasted
result

Referenced by test_pydatamem_seteventhook_start().

flat iterator for subspace (when numiter < nd)

Referenced by _nonzero_indices().


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