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

Function neighiter_dealloc

numpy/core/src/multiarray/iterators.c:1803–1815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1801}
1802
1803static void neighiter_dealloc(PyArrayNeighborhoodIterObject* iter)
1804{
1805 if (iter->mode == NPY_NEIGHBORHOOD_ITER_CONSTANT_PADDING) {
1806 if (PyArray_ISOBJECT(iter->_internal_iter->ao)) {
1807 Py_DECREF(*(PyObject**)iter->constant);
1808 }
1809 }
1810 PyDataMem_FREE(iter->constant);
1811 Py_DECREF(iter->_internal_iter);
1812
1813 array_iter_base_dealloc((PyArrayIterObject*)iter);
1814 PyArray_free((PyArrayObject*)iter);
1815}
1816
1817NPY_NO_EXPORT PyTypeObject PyArrayNeighborhoodIter_Type = {
1818 PyVarObject_HEAD_INIT(NULL, 0)

Callers

nothing calls this directly

Calls 2

PyDataMem_FREEFunction · 0.85
array_iter_base_deallocFunction · 0.85

Tested by

no test coverage detected