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

Function PyArray_All

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

NUMPY_API * All */

Source from the content-addressed store, hash-verified

767 * All
768 */
769NPY_NO_EXPORT PyObject *
770PyArray_All(PyArrayObject *self, int axis, PyArrayObject *out)
771{
772 PyObject *arr, *ret;
773
774 arr = PyArray_CheckAxis(self, &axis, 0);
775 if (arr == NULL) {
776 return NULL;
777 }
778 ret = PyArray_GenericReduceFunction((PyArrayObject *)arr,
779 n_ops.logical_and, axis,
780 NPY_BOOL, out);
781 Py_DECREF(arr);
782 return ret;
783}
784
785
786static PyObject *

Callers

nothing calls this directly

Calls 2

PyArray_CheckAxisFunction · 0.85

Tested by

no test coverage detected