Cos
Examples
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_cos(a)
}
#> torch_tensor
#> 0.9982
#> 0.6039
#> 0.6698
#> 0.9771
#> [ CPUFloatType{4} ]
Cos
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_cos(a)
}
#> torch_tensor
#> 0.9982
#> 0.6039
#> 0.6698
#> 0.9771
#> [ CPUFloatType{4} ]