NUMPY_API * Prod */
| 497 | * Prod |
| 498 | */ |
| 499 | NPY_NO_EXPORT PyObject * |
| 500 | PyArray_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 |
nothing calls this directly
no test coverage detected