Sin
Examples
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_sin(a)
}
#> torch_tensor
#> 0.7686
#> 0.2878
#> -0.9837
#> -0.8935
#> [ CPUFloatType{4} ]
Sin
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_sin(a)
}
#> torch_tensor
#> 0.7686
#> 0.2878
#> -0.9837
#> -0.8935
#> [ CPUFloatType{4} ]