numpy  2.0.0
npy_index_info Struct Reference

#include <mapping.h>

Data Fields

PyObject * object
npy_intp value
int type

Detailed Description

Struct into which indices are parsed. I.e. integer ones should only be parsed once, slices and arrays need to be validated later and for the ellipsis we need to find how many slices it represents.

Field Documentation

Object of index: slice, array, or NULL. Owns a reference.
kind of index, see constants in mapping.c

Referenced by array_assign_boolean_subscript(), and array_subscript().

Value of an integer index, number of slices an Ellipsis is worth, -1 if input was an integer array and the original size of the boolean array if it is a converted boolean array.

Referenced by array_assign_boolean_subscript(), and array_subscript().


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