R/api.R
nv_tan.Rd
Element-wise tangent. You can also use tan().
tan()
nv_tan(operand)
(tensorish) Operand.
tensorish
tensorish Has the same shape and data type as the input.
nvl_tan() for the underlying primitive.
nvl_tan()
jit_eval({ x <- nv_tensor(c(0, 0.5, 1)) tan(x) }) #> AnvilTensor #> 0.0000 #> 0.5463 #> 1.5574 #> [ CPUf32{3} ]