-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
dpctl/tensor/libtensor/include/kernels/elementwise_functions/expm1.hpp
Outdated
Show resolved
Hide resolved
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1332/index.html |
Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_3 ran successfully. |
f3edac3
to
64282d6
Compare
Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_33 ran successfully. |
dpctl/tensor/libtensor/include/kernels/elementwise_functions/expm1.hpp
Outdated
Show resolved
Hide resolved
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
Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_38 ran successfully. |
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Array API standard conformance tests for dpctl=0.14.6dev1=py310h7bf5fec_34 ran successfully. |
This PR changes the logic of
expm1
for complex data types to better account for special cases (NaN
s,inf
s, 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.