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

Function array_negative

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

Source from the content-addressed store, hash-verified

604}
605
606static PyObject *
607array_negative(PyArrayObject *m1)
608{
609 if (can_elide_temp_unary(m1)) {
610 return PyArray_GenericInplaceUnaryFunction(m1, n_ops.negative);
611 }
612 return PyArray_GenericUnaryFunction(m1, n_ops.negative);
613}
614
615static PyObject *
616array_absolute(PyArrayObject *m1)

Callers

nothing calls this directly

Tested by

no test coverage detected