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

Function PyArray_CumProd

numpy/core/src/multiarray/calculation.c:537–552  ·  view source on GitHub ↗

NUMPY_API * CumProd */

Source from the content-addressed store, hash-verified

535 * CumProd
536 */
537NPY_NO_EXPORT PyObject *
538PyArray_CumProd(PyArrayObject *self, int axis, int rtype, PyArrayObject *out)
539{
540 PyObject *arr, *ret;
541
542 arr = PyArray_CheckAxis(self, &axis, 0);
543 if (arr == NULL) {
544 return NULL;
545 }
546
547 ret = PyArray_GenericAccumulateFunction((PyArrayObject *)arr,
548 n_ops.multiply, axis,
549 rtype, out);
550 Py_DECREF(arr);
551 return ret;
552}
553
554/*NUMPY_API
555 * Round

Callers 1

array_cumprodFunction · 0.85

Calls 2

PyArray_CheckAxisFunction · 0.85

Tested by

no test coverage detected