bitwise_right_shift¶
- bitwise_right_shift(x1: array | int, x2: array | int, /) 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 (Union[array, int]) – first input array. Should have an integer data type.
x2 (Union[array, int]) – 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.
Notes
At least one of
x1
orx2
must be an array.