Skip to content
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

incorrect results for dpctl.tensor.asin and dpctl.tensor.asinh #1986

Open
vtavana opened this issue Feb 4, 2025 · 0 comments
Open

incorrect results for dpctl.tensor.asin and dpctl.tensor.asinh #1986

vtavana opened this issue Feb 4, 2025 · 0 comments
Assignees

Comments

@vtavana
Copy link
Collaborator

vtavana commented Feb 4, 2025

The result for the The following examples differ from NumPy. Changing dtype to "c8" will return the correct result.

import numpy, dpctl.tensor as dpt
a=numpy.array(1.+64387093.j)
numpy.asin(a)
# np.complex128(1.5531063034636457e-08+18.673570932293245j)

ia=dpt.asarray(1.+64387093.j)
dpt.asin(ia)
# array(1.57079633+36.04365339j)

a=numpy.array(-67108050.+1.j)
numpy.asinh(a)
# np.complex128(-18.71496174549975+1.4901341940348435e-08j)

ia=dpt.asarray(-67108050.+1.j)
dpt.asinh(ia)
# array(-inf+0.j)
@ndgrigorian ndgrigorian self-assigned this Feb 5, 2025
@ndgrigorian ndgrigorian changed the title incorrect results for dpctl.tensor.asin and dpctl.tensor.asin incorrect results for dpctl.tensor.asin and dpctl.tensor.asinh Feb 6, 2025
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

No branches or pull requests

2 participants