NUMPY_API * All */
| 767 | * All |
| 768 | */ |
| 769 | NPY_NO_EXPORT PyObject * |
| 770 | PyArray_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 | |
| 786 | static PyObject * |
nothing calls this directly
no test coverage detected