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

Add handlers for corner cases #2

Open
vkhodygo opened this issue Mar 15, 2022 · 0 comments
Open

Add handlers for corner cases #2

vkhodygo opened this issue Mar 15, 2022 · 0 comments

Comments

@vkhodygo
Copy link
Member

vkhodygo commented Mar 15, 2022

This is a cumulative issue for multiple components at the moment:

  • Input data contains one or no components at all. Another special case is when the size is 2: any compensated summation should fail when there is only two numbers?;
  • Division by zero or very small numbers that results in Inf or NaN;
  • Overflow due to accumulation, that affects any sum. There is a solution (see GSL) that is to scale the data before summation, however, that comes at the cost of performance and - potentially - loss of precision. Sorting data should improve the situation, however, this is again slow and strongly depends on the data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant