Skip to contents

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

Usage

prim_expm1(operand)

Arguments

operand

(arrayish)
Arrayish value of data type floating-point.

Value

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

Implemented Rules

  • stablehlo

  • quickr

  • reverse

See also

Examples

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