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

Function array_cumprod

numpy/core/src/multiarray/methods.c:2449–2469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2447}
2448
2449static PyObject *
2450array_cumprod(PyArrayObject *self, PyObject *args, PyObject *kwds)
2451{
2452 int axis = NPY_MAXDIMS;
2453 PyArray_Descr *dtype = NULL;
2454 PyArrayObject *out = NULL;
2455 int rtype;
2456 static char *kwlist[] = {"axis", "dtype", "out", NULL};
2457
2458 if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O&O&O&:cumprod", kwlist,
2459 PyArray_AxisConverter, &axis,
2460 PyArray_DescrConverter2, &dtype,
2461 PyArray_OutputConverter, &out)) {
2462 Py_XDECREF(dtype);
2463 return NULL;
2464 }
2465
2466 rtype = _CHKTYPENUM(dtype);
2467 Py_XDECREF(dtype);
2468 return PyArray_CumProd(self, axis, rtype, out);
2469}
2470
2471
2472static PyObject *

Callers

nothing calls this directly

Calls 1

PyArray_CumProdFunction · 0.85

Tested by

no test coverage detected