-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Clarify and correct the doc of atan2. #26180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@pytorchbot rebase this please |
do you know why these tests are failing? |
88b236f
to
29334f8
Compare
@gchanan The reason the test failed before was |
torch/_torch_docs.py
Outdated
Returns a new tensor with the arctangent of the elements of :attr:`input` | ||
and :attr:`other`. | ||
Returns a new tensor with the arctangent of the angle between | ||
:math:`(\text{{other}}_{{i}}, \text{{input}}_{{i}})` and :math:`(1, 0)`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you talk about vectors here, it should be be (input[i], other[i])
no?
Or you can define it as tan^{-1} ( other[i] / input[i])
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually maybe something inspired from what the numpy doc says would be clearer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rewrote this paragraph. Please see the new update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor improvements in the text, but otherwise fine.
Thanks for the PR !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@albanD has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Pull Request resolved: pytorch#26180 Reviewed By: ezyang Differential Revision: D17500224 Pulled By: albanD fbshipit-source-id: 98b9f32aa443963fe1e89b83e15bed9ff83a2694
No description provided.