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

Function array_positive

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

Source from the content-addressed store, hash-verified

595}
596
597static PyObject *
598array_positive(PyArrayObject *m1)
599{
600 if (can_elide_temp_unary(m1)) {
601 return PyArray_GenericInplaceUnaryFunction(m1, n_ops.positive);
602 }
603 return PyArray_GenericUnaryFunction(m1, n_ops.positive);
604}
605
606static PyObject *
607array_negative(PyArrayObject *m1)

Callers

nothing calls this directly

Tested by

no test coverage detected