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

Function npyiter_has_multi_index_get

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

Source from the content-addressed store, hash-verified

1844}
1845
1846static PyObject *
1847npyiter_has_multi_index_get(
1848 NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored))
1849{
1850 if (self->iter == NULL) {
1851 PyErr_SetString(PyExc_ValueError,
1852 "Iterator is invalid");
1853 return NULL;
1854 }
1855
1856 if (NpyIter_HasMultiIndex(self->iter)) {
1857 Py_RETURN_TRUE;
1858 }
1859 else {
1860 Py_RETURN_FALSE;
1861 }
1862}
1863
1864static PyObject *
1865npyiter_has_index_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored))

Callers

nothing calls this directly

Calls 1

NpyIter_HasMultiIndexFunction · 0.85

Tested by

no test coverage detected