floor#
- rbc.stdlib.elementwise_functions.floor(x)#
Rounds each element x_i of the input array x to the greatest (i.e., closest to +infinity) integer-valued number that is not greater than x_i.
Examples
>>> from rbc.stdlib import array_api >>> @heavydb('double[](double[])') ... def array_api_floor(x): ... return array_api.floor(x) >>> array_api_floor(np.array([1.0, np.pi, np.e])).execute() array([1., 3., 2.], dtype=float32)