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

Function array_add

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

Source from the content-addressed store, hash-verified

292}
293
294static PyObject *
295array_add(PyObject *m1, PyObject *m2)
296{
297 PyObject *res;
298
299 BINOP_GIVE_UP_IF_NEEDED(m1, m2, nb_add, array_add);
300 if (try_binary_elide(m1, m2, &array_inplace_add, &res, 1)) {
301 return res;
302 }
303 return PyArray_GenericBinaryFunction(m1, m2, n_ops.add);
304}
305
306static PyObject *
307array_subtract(PyObject *m1, PyObject *m2)

Callers

nothing calls this directly

Calls 2

try_binary_elideFunction · 0.85

Tested by

no test coverage detected