Skip to contents

Element-wise hyperbolic cosine. You can also use cosh().

Usage

nv_cosh(operand)

Arguments

operand

(arrayish)
Operand.

Value

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

See also

prim_cosh() for the underlying primitive.

Examples

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