bitwise_left_shift¶
- bitwise_left_shift(x1: array, x2: array, /) array ¶
Shifts the bits of each element
x1_i
of the input arrayx1
to the left by appendingx2_i
(i.e., the respective element in the input arrayx2
) zeros to the right ofx1_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 to0
.
- Returns:
out (array) – an array containing the element-wise results. The returned array must have a data type determined by Type Promotion Rules.