bitwise_right_shift#
- rbc.stdlib.elementwise_functions.bitwise_right_shift(x1, x2)#
Shifts the bits of each element x1_i of the input array x1 to the right by appending x2_i (i.e., the respective element in the input array x2) zeros to the right of x1_i.
Examples
>>> from rbc.stdlib import array_api >>> @heavydb('int64(int64, int64)') ... def array_api_bitwise_right_shift(x1, x2): ... return array_api.bitwise_right_shift(x1, x2) >>> array_api_bitwise_right_shift(10, 1).execute() 5 >>> np.binary_repr(5) '101'