NUMPY_API *CumSum */
| 516 | *CumSum |
| 517 | */ |
| 518 | NPY_NO_EXPORT PyObject * |
| 519 | PyArray_CumSum(PyArrayObject *self, int axis, int rtype, PyArrayObject *out) |
| 520 | { |
| 521 | PyObject *arr, *ret; |
| 522 | |
| 523 | arr = PyArray_CheckAxis(self, &axis, 0); |
| 524 | if (arr == NULL) { |
| 525 | return NULL; |
| 526 | } |
| 527 | ret = PyArray_GenericAccumulateFunction((PyArrayObject *)arr, |
| 528 | n_ops.add, axis, |
| 529 | rtype, out); |
| 530 | Py_DECREF(arr); |
| 531 | return ret; |
| 532 | } |
| 533 | |
| 534 | /*NUMPY_API |
| 535 | * CumProd |
no test coverage detected