R/api.R
nv_not.Rd
Element-wise logical NOT. You can also use the ! operator.
!
nv_not(operand)
(tensorish) Operand.
tensorish
tensorish Has the same shape and data type as the input.
nvl_not() for the underlying primitive.
nvl_not()
jit_eval({ x <- nv_tensor(c(TRUE, FALSE, TRUE)) !x }) #> AnvilTensor #> 0 #> 1 #> 0 #> [ CPUi1{3} ]