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

Function array_absolute

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

Source from the content-addressed store, hash-verified

613}
614
615static PyObject *
616array_absolute(PyArrayObject *m1)
617{
618 if (can_elide_temp_unary(m1) && !PyArray_ISCOMPLEX(m1)) {
619 return PyArray_GenericInplaceUnaryFunction(m1, n_ops.absolute);
620 }
621 return PyArray_GenericUnaryFunction(m1, n_ops.absolute);
622}
623
624static PyObject *
625array_invert(PyArrayObject *m1)

Callers

nothing calls this directly

Tested by

no test coverage detected