Skip to contents

Acosh

Usage

torch_acosh(self)

Arguments

self

(Tensor) the input tensor.

Note

The domain of the inverse hyperbolic cosine is [1, inf) and values outside this range will be mapped to NaN, except for + INF for which the output is mapped to + INF.

outi=cosh1(inputi)

acosh(input, *, out=None) -> Tensor

Returns a new tensor with the inverse hyperbolic cosine of the elements of input.

Examples

if (torch_is_installed()) {

a <- torch_randn(c(4))$uniform_(1, 2)
a
torch_acosh(a)
}
#> torch_tensor
#>  0.8186
#>  0.7106
#>  1.1291
#>  1.1678
#> [ CPUFloatType{4} ]