| 2447 | } |
| 2448 | |
| 2449 | static PyObject * |
| 2450 | array_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 | |
| 2472 | static PyObject * |
nothing calls this directly
no test coverage detected