NUMPY_API * CumProd */
| 535 | * CumProd |
| 536 | */ |
| 537 | NPY_NO_EXPORT PyObject * |
| 538 | PyArray_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 |
no test coverage detected