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
#> 0.2910
#> 2.0468
#> -1.9839
#> 2.5500
#> [ CPUFloatType{4} ]