Array API compatible wrapper for :py:func:`np.all `. See its docstring for more information.
(
x: Array,
/,
*,
axis: Optional[Union[int, Tuple[int, ...]]] = None,
keepdims: bool = False,
)
| 8 | |
| 9 | |
| 10 | def all( |
| 11 | x: Array, |
| 12 | /, |
| 13 | *, |
| 14 | axis: Optional[Union[int, Tuple[int, ...]]] = None, |
| 15 | keepdims: bool = False, |
| 16 | ) -> Array: |
| 17 | """ |
| 18 | Array API compatible wrapper for :py:func:`np.all <numpy.all>`. |
| 19 | |
| 20 | See its docstring for more information. |
| 21 | """ |
| 22 | return Array._new(np.asarray(np.all(x._array, axis=axis, keepdims=keepdims))) |
| 23 | |
| 24 | |
| 25 | def any( |