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

Function npyiter_seq_length

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

Source from the content-addressed store, hash-verified

1956}
1957
1958NPY_NO_EXPORT Py_ssize_t
1959npyiter_seq_length(NewNpyArrayIterObject *self)
1960{
1961 if (self->iter == NULL) {
1962 return 0;
1963 }
1964 else {
1965 return NpyIter_GetNOp(self->iter);
1966 }
1967}
1968
1969NPY_NO_EXPORT PyObject *
1970npyiter_seq_item(NewNpyArrayIterObject *self, Py_ssize_t i)

Callers

nothing calls this directly

Calls 1

NpyIter_GetNOpFunction · 0.85

Tested by

no test coverage detected