{ } Raw JSON

bundles / numpy 2.4.4 / numpy / matrixlib / defmatrix / matrix / any

function

numpy.matrixlib.defmatrix:matrix.any

source: /numpy/matrixlib/defmatrix.py:556

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, 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

Aliases

  • numpy.matrix.any