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

Function PyArray_Any

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

NUMPY_API * Any */

Source from the content-addressed store, hash-verified

748 * Any
749 */
750NPY_NO_EXPORT PyObject *
751PyArray_Any(PyArrayObject *self, int axis, PyArrayObject *out)
752{
753 PyObject *arr, *ret;
754
755 arr = PyArray_CheckAxis(self, &axis, 0);
756 if (arr == NULL) {
757 return NULL;
758 }
759 ret = PyArray_GenericReduceFunction((PyArrayObject *)arr,
760 n_ops.logical_or, axis,
761 NPY_BOOL, out);
762 Py_DECREF(arr);
763 return ret;
764}
765
766/*NUMPY_API
767 * All

Callers 1

array_containsFunction · 0.85

Calls 2

PyArray_CheckAxisFunction · 0.85

Tested by

no test coverage detected