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

Function PyArray_Prod

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

NUMPY_API * Prod */

Source from the content-addressed store, hash-verified

497 * Prod
498 */
499NPY_NO_EXPORT PyObject *
500PyArray_Prod(PyArrayObject *self, int axis, int rtype, PyArrayObject *out)
501{
502 PyObject *arr, *ret;
503
504 arr = PyArray_CheckAxis(self, &axis, 0);
505 if (arr == NULL) {
506 return NULL;
507 }
508 ret = PyArray_GenericReduceFunction((PyArrayObject *)arr,
509 n_ops.multiply, axis,
510 rtype, out);
511 Py_DECREF(arr);
512 return ret;
513}
514
515/*NUMPY_API
516 *CumSum

Callers

nothing calls this directly

Calls 2

PyArray_CheckAxisFunction · 0.85

Tested by

no test coverage detected