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

Improve errors in summations within FFTs #211

Open
xfong opened this issue Dec 5, 2017 · 0 comments
Open

Improve errors in summations within FFTs #211

xfong opened this issue Dec 5, 2017 · 0 comments

Comments

@xfong
Copy link

xfong commented Dec 5, 2017

The results of FFTs can be dependent on GPU employed due to rounding errors. It will be nice if the library can be enhanced such that summations handle the rounding errors. One way could be to check the numbers to determine the rounding error:
// a + b
if fabs(a) > fabs(b) {
s = a;
t = s + b;
y = t - a;
s = y - b;
return t - s;
}
else {
s = b;
t = s + a;
y = t - b;
s = y - a;
return t - s;
}

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

1 participant