W3cubDocs

/NumPy 1.17

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:
axis : int, optional

Axis along which logical OR is performed

out : ndarray, optional

Output to existing array instead of creating new one, must have same shape as expected output

Returns:
any : bool, ndarray

Returns a single bool if axis is None; otherwise, returns ndarray

© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.matrix.any.html