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

Function npyiter_new

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

Source from the content-addressed store, hash-verified

84}
85
86static PyObject *
87npyiter_new(PyTypeObject *subtype, PyObject *NPY_UNUSED(args),
88 PyObject *NPY_UNUSED(kwds))
89{
90 NewNpyArrayIterObject *self;
91
92 self = (NewNpyArrayIterObject *)subtype->tp_alloc(subtype, 0);
93 if (self != NULL) {
94 self->iter = NULL;
95 self->nested_child = NULL;
96 }
97
98 return (PyObject *)self;
99}
100
101static int
102NpyIter_GlobalFlagsConverter(PyObject *flags_in, npy_uint32 *flags)

Callers 2

NpyIter_NestedItersFunction · 0.85
npyiter_copyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected