bundles / numpy 2.4.3 / numpy / matrixlib / defmatrix / matrix / any
function
numpy.matrixlib.defmatrix:matrix.any
Signature
def any(self, axis = None, out = None)Summary
Test whether any array element along a given axis evaluates to True.
Extended Summary
Refer to numpy.any for full documentation.
Parameters
axis: int, optionalAxis along which logical OR is performed
out: ndarray, optionalOutput to existing array instead of creating new one, must have same shape as expected output
Returns
any: bool, ndarrayReturns a single bool if
axisisNone; otherwise, returns ndarray
Aliases
numpy.matrix.any