Skip to content

Fix expm1 for complex special cases #1332

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

Merged
merged 4 commits into from
Aug 11, 2023
Merged

Fix expm1 for complex special cases #1332

merged 4 commits into from
Aug 11, 2023

Conversation

ndgrigorian
Copy link
Collaborator

This PR changes the logic of expm1 for complex data types to better account for special cases (NaNs, infs, etc.). These cases were handled identically to Numpy, but did not conform to the array API.

In addition, this PR slips in changes to silence the remaining warnings in the test suite which were being raised by the elementwise tests.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you opening the PR as a draft?

@coveralls
Copy link
Collaborator

coveralls commented Aug 9, 2023

Coverage Status

coverage: 84.923% (+0.004%) from 84.919% when pulling 27ea9c2 on expm1-special-cases into 341d4da on master.

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_3 ran successfully.
Passed: 639
Failed: 361
Skipped: 119

@ndgrigorian ndgrigorian force-pushed the expm1-special-cases branch from f3edac3 to 64282d6 Compare August 9, 2023 21:40
@github-actions
Copy link

github-actions bot commented Aug 9, 2023

Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_33 ran successfully.
Passed: 913
Failed: 87
Skipped: 119

For `inf` real part and finite, nonzero imaginary part, now guaranteed to be (+/-`inf`, +/-`inf`), with cosine and sine of the imaginary part determining the sign, respectively
@github-actions
Copy link

Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_38 ran successfully.
Passed: 913
Failed: 87
Skipped: 119

@ndgrigorian ndgrigorian merged commit ed93e02 into master Aug 11, 2023
@github-actions
Copy link

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@oleksandr-pavlyk oleksandr-pavlyk deleted the expm1-special-cases branch August 11, 2023 01:16
@github-actions
Copy link

Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_34 ran successfully.
Passed: 913
Failed: 87
Skipped: 119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants