numpy.matrix.any#

method

matrix.any(axis=None,out=None)[source]#

Test whether any array element along a given axis evaluates to True.

Refer tonumpy.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 havesame shape as expected output

Returns:
anybool, ndarray

Returns a single bool ifaxis isNone; otherwise,returnsndarray

On this page