bitwise_left_shift#
- rbc.stdlib.elementwise_functions.bitwise_left_shift(x1, x2)#
Shifts the bits of each element x1_i of the input array x1 to the left 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_left_shift(x1, x2): ... return array_api.bitwise_left_shift(x1, x2) >>> array_api_bitwise_left_shift(5, [1, 2, 3]).execute() array([10, 20, 40])