Skip to content

Fix expm1 for complex special cases - #1332

Merged
ndgrigorian merged 4 commits into
masterfrom
expm1-special-cases
Aug 11, 2023
Merged

ndgrigorian merged 4 commits into
masterfrom
expm1-special-cases

Conversation

@ndgrigorian

Copy link
Copy Markdown
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

coveralls commented Aug 9, 2023 •

Copy link
Copy Markdown
Collaborator

Coverage Status

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

@github-actions

github-actions Bot commented Aug 9, 2023

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Aug 9, 2023

Copy link
Copy Markdown

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

github-actions Bot commented Aug 9, 2023

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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