NUMPY_API * Min */
| 250 | * Min |
| 251 | */ |
| 252 | NPY_NO_EXPORT PyObject * |
| 253 | PyArray_Min(PyArrayObject *ap, int axis, PyArrayObject *out) |
| 254 | { |
| 255 | PyArrayObject *arr; |
| 256 | PyObject *ret; |
| 257 | |
| 258 | arr=(PyArrayObject *)PyArray_CheckAxis(ap, &axis, 0); |
| 259 | if (arr == NULL) { |
| 260 | return NULL; |
| 261 | } |
| 262 | ret = PyArray_GenericReduceFunction(arr, n_ops.minimum, axis, |
| 263 | PyArray_DESCR(arr)->type_num, out); |
| 264 | Py_DECREF(arr); |
| 265 | return ret; |
| 266 | } |
| 267 | |
| 268 | /*NUMPY_API |
| 269 | * Ptp |
no test coverage detected