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

Function array_true_divide

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

Source from the content-addressed store, hash-verified

789}
790
791static PyObject *
792array_true_divide(PyObject *m1, PyObject *m2)
793{
794 PyObject *res;
795 PyArrayObject *a1 = (PyArrayObject *)m1;
796
797 BINOP_GIVE_UP_IF_NEEDED(m1, m2, nb_true_divide, array_true_divide);
798 if (PyArray_CheckExact(m1) &&
799 (PyArray_ISFLOAT(a1) || PyArray_ISCOMPLEX(a1)) &&
800 try_binary_elide(m1, m2, &array_inplace_true_divide, &res, 0)) {
801 return res;
802 }
803 return PyArray_GenericBinaryFunction(m1, m2, n_ops.true_divide);
804}
805
806static PyObject *
807array_inplace_floor_divide(PyArrayObject *m1, PyObject *m2)

Callers

nothing calls this directly

Calls 2

try_binary_elideFunction · 0.85

Tested by

no test coverage detected