Skip to contents

Element-wise exponential.

Usage

nvl_exp(operand)

Arguments

operand

(tensorish)
Tensorish value of data type floating-point.

Value

tensorish
Has the same shape and data type as the input. It is ambiguous if the input is ambiguous.

Implemented Rules

  • stablehlo

  • backward

StableHLO

Lowers to stablehlo::hlo_exponential().

See also

Examples

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