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

Change dtype=None behavior in sum/prod/cumulative_sum/linalg.trace #744

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

rgommers
Copy link
Member

Closes gh-731. This is a backwards-incompatible change. It seems justified and necessary because array libraries all behave like the required behavior described in this commit, are not planning to change, and the initial rationale for the "upcast float" requirement wasn't strong. See discussion in gh-731 for more details.

It also improves readability; there were too many bullet points and the indentation wasn't working. The explanation of behavior for dtype=None is almost halved in size, making it much easier to understand.

Closes data-apisgh-731. This is a backwards-incompatible change. It seems
justified and necessary because array libraries all behave like the
required behavior described in this commit, are not planning to change,
and the initial rationale for the "upcast float" requirement wasn't
strong. See discussion in data-apisgh-731 for more details.
@rgommers rgommers added Maintenance Bug fix, typo fix, or general maintenance. API change Changes to existing functions or objects in the API. labels Feb 10, 2024
@rgommers rgommers added this to the v2023 milestone Feb 10, 2024
Copy link
Contributor

@kgryte kgryte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, @rgommers!

@kgryte kgryte merged commit 7274050 into data-apis:main Feb 13, 2024
3 checks passed
@rgommers rgommers deleted the remove-sum-upcasting branch February 13, 2024 09:43
tomwhite added a commit to cubed-dev/cubed that referenced this pull request Dec 19, 2024
tomwhite added a commit to cubed-dev/cubed that referenced this pull request Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Changes to existing functions or objects in the API. Maintenance Bug fix, typo fix, or general maintenance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reconsider sum/prod/trace upcasting for floating-point dtypes
2 participants