diff options
author | Amartya Sanyal <amartya18x@gmail.com> | 2017-07-12 18:36:22 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2017-07-12 18:36:22 +0300 |
commit | ada30dad41f5a72c128514af0a4a67e8f565e40a (patch) | |
tree | 7ee499f83a7704c249811179bb689e6cd4ceadfb | |
parent | e17f93ae8976a611cbda9f619ed129614e1c443d (diff) |
Fixing arctan2 documentation (#1060)
-rwxr-xr-x | doc/maths.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/maths.md b/doc/maths.md index c7d5ec9..85abda4 100755 --- a/doc/maths.md +++ b/doc/maths.md @@ -467,7 +467,8 @@ For more than 4 dimensions, you can use a storage: `y = torch.zeros(torch.LongSt ### [res] torch.atan2([res,] x, y) ### <a name="torch.atan2"></a> -`y = torch.atan2(x, y)` returns a new `Tensor` with the arctangent of the elements of `x` and `y`. +`y = torch.atan2(x, y)` returns a new `Tensor` with the arctangent of the elements of `x` and `y`. +Note that the arctangent of the elements `x` and `y` refers to the signed angle in radians between the rays ending at origin where the first one starts at (1, 0) and the second at (y, x). `x:atan2()` replaces all elements in-place with the arctangent of the elements of `x` and `y`. |