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]
NpyIterouter
void * unused [NPY_MAXDIMS-2]
PyArrayObjectarray
PyArrayIterObjectait
PyArrayObjectsubspace
int iteraxes [NPY_MAXDIMS]
npy_intp fancy_strides [NPY_MAXDIMS]
char * baseoffset
int consec
char * dataptr
int nd_fancy
npy_intp fancy_dims [NPY_MAXDIMS]
int needs_api
PyArrayObjectextra_op
PyArray_Descrextra_op_dtype
npy_uint32 * extra_op_flags
NpyIterextra_op_iter
NpyIter_IterNextFuncextra_op_next
char ** extra_op_ptrs
NpyIter_IterNextFuncouter_next
char ** outer_ptrs
npy_intpouter_strides
NpyItersubspace_iter
NpyIter_IterNextFuncsubspace_next
char ** subspace_ptrs
npy_intpsubspace_strides
npy_intp iter_count

Detailed Description

Store the information needed for fancy-indexing over an array. The fields are slightly unordered to keep consec, dataptr and subspace where they were originally.

Field Documentation

Flat iterator for the indexed array. For compatibility solely.
pointer when all fancy indices are 0
after binding consec denotes at which axis the fancy axes are inserted.

Referenced by PyUFunc_FromFuncAndDataAndSignature().

Iterator flags
Count for the external loop (which ever it is) for API iteration
if subspace iteration, then this is the array of axes in the underlying array represented by the index objects
Whether the iterator (any of the iterators) requires API
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
index objects
iterator
Information about the iteration state.
size of broadcasted
result
Subspace array. For binary compatibility (was an iterator, but only the check for NULL should be used).

Referenced by PyUFunc_FromFuncAndDataAndSignature().

Information about the subspace iterator.

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