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

Disallow promoting real-valued inputs to complex dtypes when values are outside of their real domain #539

Closed
kgryte opened this issue Dec 1, 2022 · 0 comments · Fixed by #573
Labels
topic: Complex Data Types Complex number data types.
Milestone

Comments

@kgryte
Copy link
Contributor

kgryte commented Dec 1, 2022

Initially discussed in #514 (comment).

In summary, when a user provides a real-valued input to a function such as log or sqrt and one or more values are outside of their real domain, implementations should not automatically promote to a complex floating-point dtype.

The specification does not support value based promotion, but we should reiterate this with particular regard to real-complex. Responsibility for type promotion should be punted to userland.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: Complex Data Types Complex number data types.
Projects
None yet
2 participants