Skip to contents

Element-wise logical NOT.

Usage

nvl_not(operand)

Arguments

operand

(tensorish)
Tensorish value of data type boolean, integer, or unsigned integer.

Value

tensorish
Has the same shape and data type as the input. It is ambiguous if the input is ambiguous.

Implemented Rules

  • stablehlo

  • backward

StableHLO

Lowers to stablehlo::hlo_not().

See also

Examples

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