This is documentation for an old release of NumPy (version 1.19). Read this page in the documentation of the latest stable release (version 2.2).
numpy.matrix.any¶
method
-
matrix.
any
(self, axis=None, out=None)[source]¶ Test whether any array element along a given axis evaluates to True.
Refer to
numpy.any
for full documentation.- Parameters
- axisint, optional
Axis along which logical OR is performed
- outndarray, optional
Output to existing array instead of creating new one, must have same shape as expected output
- Returns
- anybool, ndarray
Returns a single bool if axis is
None
; otherwise, returnsndarray