Skip to contents

Element-wise arithmetic right bit shift.

Usage

nv_shift_right_arithmetic(lhs, rhs)

Arguments

lhs, rhs

(tensorish)
Left and right operand. Operands are promoted to a common data type. Scalars are broadcast to the shape of the other operand.

Value

tensorish
Has the same shape and the promoted common data type of the inputs.

See also

nvl_shift_right_arithmetic() for the underlying primitive.

Examples

jit_eval({
  x <- nv_tensor(c(8L, -16L, 32L))
  y <- nv_tensor(c(1L, 2L, 3L))
  nv_shift_right_arithmetic(x, y)
})
#> AnvilTensor
#>   4
#>  -4
#>   4
#> [ CPUi32{3} ]