all#

rbc.stdlib.utility_functions.all(x)#

Tests whether all input array elements evaluate to True along a specified axis.

Examples

>>> from rbc.stdlib import array_api
>>> @heavydb('bool(int64[])')
... def array_api_all(arr):
...     return array_api.all(arr)
>>> array_api_all([0, 1]).execute()
False
>>> array_api_all([1]).execute()
True

Array-API ‘all’ doc