numpy  2.0.0
src/multiarray/iterators.h
Go to the documentation of this file.
00001 #ifndef _NPY_ARRAYITERATORS_H_
00002 #define _NPY_ARRAYITERATORS_H_
00003 
00004 /*
00005  * Parses an index that has no fancy indexing. Populates
00006  * out_dimensions, out_strides, and out_offset.
00007  */
00008 NPY_NO_EXPORT int
00009 parse_index(PyArrayObject *self, PyObject *op,
00010             npy_intp *out_dimensions,
00011             npy_intp *out_strides,
00012             npy_intp *out_offset);
00013 
00014 NPY_NO_EXPORT PyObject
00015 *iter_subscript(PyArrayIterObject *, PyObject *);
00016 
00017 NPY_NO_EXPORT int
00018 iter_ass_subscript(PyArrayIterObject *, PyObject *, PyObject *);
00019 
00020 NPY_NO_EXPORT int
00021 slice_GetIndices(PySliceObject *r, npy_intp length,
00022                  npy_intp *start, npy_intp *stop, npy_intp *step,
00023                  npy_intp *slicelength);
00024 
00025 #endif