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

Function ufunc_dealloc

numpy/core/src/umath/ufunc_object.c:5714–5736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5712
5713
5714static void
5715ufunc_dealloc(PyUFuncObject *ufunc)
5716{
5717 PyObject_GC_UnTrack((PyObject *)ufunc);
5718 PyArray_free(ufunc->core_num_dims);
5719 PyArray_free(ufunc->core_dim_ixs);
5720 PyArray_free(ufunc->core_dim_sizes);
5721 PyArray_free(ufunc->core_dim_flags);
5722 PyArray_free(ufunc->core_offsets);
5723 PyArray_free(ufunc->core_signature);
5724 PyArray_free(ufunc->ptr);
5725 PyArray_free(ufunc->op_flags);
5726 Py_XDECREF(ufunc->userloops);
5727 if (ufunc->identity == PyUFunc_IdentityValue) {
5728 Py_DECREF(ufunc->identity_value);
5729 }
5730 Py_XDECREF(ufunc->obj);
5731 Py_XDECREF(ufunc->_loops);
5732 if (ufunc->_dispatch_cache != NULL) {
5733 PyArrayIdentityHash_Dealloc(ufunc->_dispatch_cache);
5734 }
5735 PyObject_GC_Del(ufunc);
5736}
5737
5738static PyObject *
5739ufunc_repr(PyUFuncObject *ufunc)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected