Atan2
atan2(input, other, out=NULL) -> Tensor
Element-wise arctangent of
The shapes of input and other must be
broadcastable .
Examples
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_atan2(a, torch_randn(c(4)))
}
#> torch_tensor
#> 1.7065
#> -1.1820
#> 1.5190
#> -0.3306
#> [ CPUFloatType{4} ]