Skip to contents

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

Usage

nv_exp(x)

Arguments

x

(arrayish)
Input array.

Value

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

See also

prim_exp() for the underlying primitive.

Examples

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