-
-
Notifications
You must be signed in to change notification settings - Fork 834
feat: add math/base/special/atan2f
#3338
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
math/base/special/atan2f
math/base/special/atan2f
i see that this PR is failing a lot of tests. you should update your |
"dependencies": [
"@stdlib/math/base/napi/binary",
"@stdlib/math/base/assert/is-infinitef",
"@stdlib/math/base/special/copysignf",
"@stdlib/number/float32/base/signbit",
"@stdlib/math/base/assert/is-nanf",
"@stdlib/math/base/special/atanf",
"@stdlib/constants/float32/pinf",
"@stdlib/constants/float32/pi"
] this is how you should fill the dependencies in |
@aayush0325 thanks for the assist. |
use |
@Neerajpathak07 The issue here is that |
3a84f9e
to
19271d9
Compare
@Planeshifter The PR related to |
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.
basically you need to generate the fixtures using the julia script and not copy them over from the double precision implementation
lib/node_modules/@stdlib/math/base/special/atan2f/test/fixtures/julia/negative_negative.json
Outdated
Show resolved
Hide resolved
The reason for the failing benchmarks is probably because you copied over the Makefile wrongly, use the one in |
Makefile that you should be using. This adds the include dirs so that you don't run into the error that we're currently facing here |
lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/native/Makefile
Outdated
Show resolved
Hide resolved
z = Array{Float32}( undef, length(x) ); | ||
for i in eachindex(x) | ||
z[ i ] = atan.( y[i], x[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.
Julia doesn't have support for computing atan2f
and atan2
so have kept it atan
cuz that's the only one we have. But have generated it for float32
@aayush0325 Well the error still persists even after generating fixtures for julia. |
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: ---
…into add-atan2f
@Planeshifter Only two test cases are failing in |
Completed via #7081 |
Thank you for working on this pull request. However, we cannot accept your contribution as the issue this pull request seeks to resolve has already been addressed in a different pull request or commit. Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions. |
Progresses #649
Description
This pull request:
math/base/special/atan2f
, which would be a single precision implementation for math/base/special/atan2.Related Issues
This pull request:
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers