jax.lax.shift_right_logical#
- jax.lax.shift_right_logical(x, y)[source]#
Elementwise logical right shift: \(x \gg y\).
This function lowers directly to the stablehlo.shift_right_logical operation.
- Parameters:
x (ArrayLike) – Input arrays. Must have matching integer dtypes. If neither is a scalar,
x
andy
must have the same number of dimensions and be broadcast compatible.y (ArrayLike) – Input arrays. Must have matching integer dtypes. If neither is a scalar,
x
andy
must have the same number of dimensions and be broadcast compatible.
- Returns:
An array of the same dtype as
x
andy
containing the element-wise logical right shift of each pair of broadcasted entries.- Return type:
See also
jax.numpy.right_shift()
: NumPy wrapper for this API when applied to unsigned integers, also accessible via thex >> y
operator on JAX arrays with unsigned integer dtype.jax.lax.shift_left()
: Elementwise left shift.jax.lax.shift_right_arithmetic()
: Elementwise arithmetic right shift.