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

Function npyiter_has_index_get

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

Source from the content-addressed store, hash-verified

1862}
1863
1864static PyObject *
1865npyiter_has_index_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored))
1866{
1867 if (self->iter == NULL) {
1868 PyErr_SetString(PyExc_ValueError,
1869 "Iterator is invalid");
1870 return NULL;
1871 }
1872
1873 if (NpyIter_HasIndex(self->iter)) {
1874 Py_RETURN_TRUE;
1875 }
1876 else {
1877 Py_RETURN_FALSE;
1878 }
1879}
1880
1881static PyObject *
1882npyiter_dtypes_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored))

Callers

nothing calls this directly

Calls 1

NpyIter_HasIndexFunction · 0.85

Tested by

no test coverage detected