Cosh
cosh(input, out=NULL) -> Tensor
Returns a new tensor with the hyperbolic cosine of the elements of
input
.
Examples
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_cosh(a)
}
#> torch_tensor
#> 1.5224
#> 1.2592
#> 1.9558
#> 1.0356
#> [ CPUFloatType{4} ]