Skip to contents

Element-wise exponential. You can also use exp().

Usage

nv_exp(operand)

Arguments

operand

(tensorish)
Operand.

Value

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

See also

nvl_exp() for the underlying primitive.

Examples

jit_eval({
  x <- nv_tensor(c(0, 1, 2))
  exp(x)
})
#> AnvilTensor
#>  1.0000
#>  2.7183
#>  7.3891
#> [ CPUf32{3} ]