Skip to contents

Element-wise exp(x) - 1, more accurate for small x.

Usage

nv_expm1(x)

Arguments

x

(arrayish)
Input array.

Value

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

See also

prim_expm1() for the underlying primitive.

Examples

x <- nv_array(c(0, 0.001, 1))
nv_expm1(x)
#> AnvlArray
#>  0.0000
#>  0.0010
#>  1.7183
#> [ CPUf32{3} ]