floor_divide#

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

Rounds the result of dividing each element x1_i of the input array x1 by the respective element x2_i of the input array x2 to the greatest (i.e., closest to +infinity) integer-value number that is not greater than the division result.

Examples

>>> from rbc.stdlib import array_api
>>> @heavydb('int64(int64, int64)')
... def array_api_bitwise_floor_divide(x1, x2):
...     return array_api.floor_divide(x1, x2)
>>> array_api_bitwise_floor_divide(7, 3).execute()
2

Array-API ‘floor_divide’ doc