Skip to contents

Element-wise greater than or equal comparison. You can also use the >= operator.

Usage

nv_ge(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 as the inputs and boolean data type.

See also

nvl_ge() for the underlying primitive.

Examples

jit_eval({
  x <- nv_tensor(c(1, 2, 3))
  y <- nv_tensor(c(3, 2, 1))
  x >= y
})
#> AnvilTensor
#>  0
#>  1
#>  1
#> [ CPUi1{3} ]