Skip to contents

Element-wise hyperbolic cosine.

Usage

prim_cosh(x)

Arguments

x

(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 hlo_cosh().

See also

Examples

x <- nv_array(c(-1, 0, 1))
prim_cosh(x)
#> AnvlArray
#>  1.5431
#>  1.0000
#>  1.5431
#> [ CPUf32{3} ]