less#

rbc.stdlib.elementwise_functions.less(x1, x2)#

Computes the truth value of x1_i < x2_i for each element x1_i of the input array x1 with the respective element x2_i of the input array x2.

Examples

>>> from rbc.stdlib import array_api
>>> @heavydb('bool[](int64[], int64[])')
... def array_api_less(x1, x2):
...     return array_api.less(x1, x2)
>>> array_api_less([4, 2, 1], [2, 2, 2]).execute()
array([False, False,  True])

Array-API ‘less’ doc