MCPcopy Create free account
hub / github.com/numpy/numpy / PyArray_Min

Function PyArray_Min

numpy/core/src/multiarray/calculation.c:252–266  ·  view source on GitHub ↗

NUMPY_API * Min */

Source from the content-addressed store, hash-verified

250 * Min
251 */
252NPY_NO_EXPORT PyObject *
253PyArray_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

Callers 1

PyArray_PtpFunction · 0.85

Calls 3

PyArray_CheckAxisFunction · 0.85
PyArray_DESCRFunction · 0.85

Tested by

no test coverage detected