bitwise_right_shift¶
- bitwise_right_shift(x1: array, x2: array, /) array ¶
Shifts the bits of each element
x1_i
of the input arrayx1
to the right according to the respective elementx2_i
of the input arrayx2
.Note
This operation must be an arithmetic shift (i.e., sign-propagating) and thus equivalent to floor division by a power of two.
- 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.