Skip to contents

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

Usage

nv_not(operand)

Arguments

operand

(arrayish)
Operand.

Value

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

See also

prim_not() for the underlying primitive.

Examples

x <- nv_array(c(TRUE, FALSE, TRUE))
!x
#> AnvlArray
#>  0
#>  1
#>  0
#> [ CPUbool{3} ]