method
matrix.any(axis=None, out=None)
Test whether any array element along a given axis evaluates to True.
Refer to
for full documentation.
Parameters:axisint, optionalAxis along which logical OR is performed
outndarray, optionalOutput to existing array instead of creating new one, must have same shape as expected output
Returns:anybool, ndarrayReturns a single bool if axis is None; otherwise, returns