all#

bamengine.ops.all(a)[source]#

Test whether all array elements are True.

Parameters:

a (bool array) – Input array.

Returns:

True if all elements are True.

Return type:

bool

Examples

>>> import bamengine.ops as ops
>>> employed = np.array([True, True, True])
>>> full_employment = ops.all(employed)
>>> # full_employment: True