Skip to contents

Element-wise logical NOT. You can also use the ! operator.

Usage

nv_not(operand)

Arguments

operand

(tensorish)
Operand.

Value

tensorish
Has the same shape and data type as the input.

See also

nvl_not() for the underlying primitive.

Examples

jit_eval({
  x <- nv_tensor(c(TRUE, FALSE, TRUE))
  !x
})
#> AnvilTensor
#>  0
#>  1
#>  0
#> [ CPUi1{3} ]