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

Function array_inplace_power

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

Source from the content-addressed store, hash-verified

723}
724
725static PyObject *
726array_inplace_power(PyArrayObject *a1, PyObject *o2, PyObject *NPY_UNUSED(modulo))
727{
728 /* modulo is ignored! */
729 PyObject *value = NULL;
730
731 INPLACE_GIVE_UP_IF_NEEDED(
732 a1, o2, nb_inplace_power, array_inplace_power);
733 if (fast_scalar_power((PyObject *)a1, o2, 1, &value) != 0) {
734 value = PyArray_GenericInplaceBinaryFunction(a1, o2, n_ops.power);
735 }
736 return value;
737}
738
739static PyObject *
740array_inplace_left_shift(PyArrayObject *m1, PyObject *m2)

Callers

nothing calls this directly

Calls 2

fast_scalar_powerFunction · 0.85

Tested by

no test coverage detected