-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Allow non-scalar arguments to atan2 when dimensions match #31
Conversation
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.
Great work, thank you very much!!
I think we can remove the old lift2
function (it is not exported and not used anywhere) and rename your new implementation from lift2'
to lift2
.
Thanks. Sorry for missing the dead function. |
Thank you! |
Oh - my bad: I should have checked it more thoroughly before merging. Your changes are great for Conceptually, |
Unfortunately, we didn't have any tests for test "atan2" do
almostEqual' (scalar (Math.pi / 4.0)) ((100.0 .* centi meter) `atan2` (1.0 .* meter))
|
I've fixed the issue and added a few tests. Unfortunately since I deleted my branch before your comment this PR isn't tracking my changes; are you able to edit this PR or should I open a new one? Thanks for your patients. |
Please open a new PR. Thank you very much! |
Fix atan2 to allow arguments with the same dimensions and remove duplicate code.