On this page
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.anyfor 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
axisisNone; otherwise, returnsndarray
© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/generated/numpy.matrix.any.html