less_equal#
- rbc.stdlib.elementwise_functions.less_equal(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_equal(x1, x2): ... return array_api.less_equal(x1, x2) >>> array_api_less_equal([4, 2, 1], [2, 2, 2]).execute() array([False, True, True])