NUMPY_API *Sum */
| 479 | *Sum |
| 480 | */ |
| 481 | NPY_NO_EXPORT PyObject * |
| 482 | PyArray_Sum(PyArrayObject *self, int axis, int rtype, PyArrayObject *out) |
| 483 | { |
| 484 | PyObject *arr, *ret; |
| 485 | |
| 486 | arr = PyArray_CheckAxis(self, &axis, 0); |
| 487 | if (arr == NULL) { |
| 488 | return NULL; |
| 489 | } |
| 490 | ret = PyArray_GenericReduceFunction((PyArrayObject *)arr, n_ops.add, axis, |
| 491 | rtype, out); |
| 492 | Py_DECREF(arr); |
| 493 | return ret; |
| 494 | } |
| 495 | |
| 496 | /*NUMPY_API |
| 497 | * Prod |
nothing calls this directly
no test coverage detected