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

Function npyiter_nop_get

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

Source from the content-addressed store, hash-verified

1921}
1922
1923static PyObject *
1924npyiter_nop_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored))
1925{
1926 if (self->iter == NULL) {
1927 PyErr_SetString(PyExc_ValueError,
1928 "Iterator is invalid");
1929 return NULL;
1930 }
1931
1932 return PyLong_FromLong(NpyIter_GetNOp(self->iter));
1933}
1934
1935static PyObject *
1936npyiter_itersize_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored))

Callers

nothing calls this directly

Calls 1

NpyIter_GetNOpFunction · 0.85

Tested by

no test coverage detected