bitwise_left_shift

bitwise_left_shift(x1: array, x2: array, /) array

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.

Parameters:
  • x1 (array) – first input array. Should have an integer data type.

  • x2 (array) – second input array. Must be compatible with x1 (see Broadcasting). Should have an integer data type. Each element must be greater than or equal to 0.

Returns:

out (array) – an array containing the element-wise results. The returned array must have a data type determined by Type Promotion Rules.