R/api.R
nv_exp.Rd
Element-wise exponential. You can also use exp().
exp()
nv_exp(operand)
(tensorish) Operand.
tensorish
tensorish Has the same shape and data type as the input.
nvl_exp() for the underlying primitive.
nvl_exp()
jit_eval({ x <- nv_tensor(c(0, 1, 2)) exp(x) }) #> AnvilTensor #> 1.0000 #> 2.7183 #> 7.3891 #> [ CPUf32{3} ]