MCPcopy Create free account
hub / github.com/numpy/numpy / npyiter_iterindex_get

Function npyiter_iterindex_get

numpy/core/src/multiarray/nditer_pywrap.c:1694–1704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1692}
1693
1694static PyObject *
1695npyiter_iterindex_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored))
1696{
1697 if (self->iter == NULL || self->finished) {
1698 PyErr_SetString(PyExc_ValueError,
1699 "Iterator is past the end");
1700 return NULL;
1701 }
1702
1703 return PyLong_FromLong(NpyIter_GetIterIndex(self->iter));
1704}
1705
1706static int
1707npyiter_iterindex_set(

Callers

nothing calls this directly

Calls 1

NpyIter_GetIterIndexFunction · 0.85

Tested by

no test coverage detected