NUMPY_API * Any */
| 748 | * Any |
| 749 | */ |
| 750 | NPY_NO_EXPORT PyObject * |
| 751 | PyArray_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 |
no test coverage detected