NUMPY_API * Max */
| 231 | * Max |
| 232 | */ |
| 233 | NPY_NO_EXPORT PyObject * |
| 234 | PyArray_Max(PyArrayObject *ap, int axis, PyArrayObject *out) |
| 235 | { |
| 236 | PyArrayObject *arr; |
| 237 | PyObject *ret; |
| 238 | |
| 239 | arr = (PyArrayObject *)PyArray_CheckAxis(ap, &axis, 0); |
| 240 | if (arr == NULL) { |
| 241 | return NULL; |
| 242 | } |
| 243 | ret = PyArray_GenericReduceFunction(arr, n_ops.maximum, axis, |
| 244 | PyArray_DESCR(arr)->type_num, out); |
| 245 | Py_DECREF(arr); |
| 246 | return ret; |
| 247 | } |
| 248 | |
| 249 | /*NUMPY_API |
| 250 | * Min |
no test coverage detected