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

Function PyArray_SetNumericOps

numpy/core/src/multiarray/number.c:127–137  ·  view source on GitHub ↗

NUMPY_API *Set internal structure with number functions that all arrays will use */

Source from the content-addressed store, hash-verified

125 *Set internal structure with number functions that all arrays will use
126 */
127NPY_NO_EXPORT int
128PyArray_SetNumericOps(PyObject *dict)
129{
130 /* 2018-09-09, 1.16 */
131 if (DEPRECATE("PyArray_SetNumericOps is deprecated. Use "
132 "PyUFunc_ReplaceLoopBySignature to replace ufunc inner loop functions "
133 "instead.") < 0) {
134 return -1;
135 }
136 return _PyArray_SetNumericOps(dict);
137}
138
139/* Note - macro contains goto */
140#define GET(op) if (n_ops.op && \

Callers 1

array_set_ops_functionFunction · 0.85

Calls 1

_PyArray_SetNumericOpsFunction · 0.85

Tested by

no test coverage detected