Skip to content

Commit ada30da

Browse files
amartya18xsoumith
authored andcommitted
Fixing arctan2 documentation (#1060)
1 parent e17f93a commit ada30da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/maths.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ For more than 4 dimensions, you can use a storage: `y = torch.zeros(torch.LongSt
467467
### [res] torch.atan2([res,] x, y) ###
468468
<a name="torch.atan2"></a>
469469

470-
`y = torch.atan2(x, y)` returns a new `Tensor` with the arctangent of the elements of `x` and `y`.
470+
`y = torch.atan2(x, y)` returns a new `Tensor` with the arctangent of the elements of `x` and `y`.
471+
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).
471472

472473
`x:atan2()` replaces all elements in-place with the arctangent of the elements of `x` and `y`.
473474

0 commit comments

Comments
 (0)