Skip to content

Remove precondition assert from Augmented.sum(large:small:) #321

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

Merged
merged 1 commit into from
Aug 11, 2025

Conversation

stephentyrone
Copy link
Member

This is potentially useful to identify some bugs, but there are also algorithms (notably Kahan summation) that can be written in terms of fast2sum but would fail this check. Rework documentation to account for the change.

This is potentially useful to identify some bugs, but there are also algorithms (notably Kahan summation) that can be written in terms of fast2sum but would fail this check. Rework documentation to account for the change.
@stephentyrone stephentyrone requested a review from glessard August 11, 2025 22:15
Copy link
Contributor

@glessard glessard left a comment

Choose a reason for hiding this comment

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

Note that on line 115, the world "summand" should be plural.

@glessard
Copy link
Contributor

@swift-ci please test

@stephentyrone
Copy link
Member Author

Note that on line 115, the world "summand" should be plural.

Fixed in c3757dc (rolled into the documentation PR I have open already).

@stephentyrone stephentyrone merged commit 8c4747f into apple:main Aug 11, 2025
26 checks passed
@stephentyrone stephentyrone deleted the remove-2sum-assert branch August 11, 2025 23:34
stephentyrone added a commit to stephentyrone/swift-numerics that referenced this pull request Aug 11, 2025
Remove precondition assert from Augmented.sum(large:small:)
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.

2 participants