Skip to contents

Element-wise inverse hyperbolic tangent.

Usage

prim_atanh(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

  • reverse

StableHLO

Lowers to stablehlo::hlo_atanh().

See also

Examples

x <- nv_array(c(-0.5, 0, 0.5))
prim_atanh(x)
#> AnvlArray
#>  -0.5493
#>   0.0000
#>   0.5493
#> [ CPUf32{3} ]