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

Shifts the bits of each element x1_i of the input array x1 to the right according to the respective element x2_i of the input array x2.


This operation must be an arithmetic shift (i.e., sign-propagating) and thus equivalent to floor division by a power of two.

  • 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.


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