round#
- rbc.stdlib.elementwise_functions.round(x)#
Rounds each element x_i of the input array x to the nearest integer-valued number.
Examples
>>> from rbc.stdlib import array_api >>> @heavydb('double[](double[])') ... def array_api_round(x): ... return array_api.round(x) >>> array_api_round([0.37, 1.64]).execute() array([0., 2.], dtype=float32)