-
Notifications
You must be signed in to change notification settings - Fork 67
Use cubic spline interpolation to speed up volmap #869
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…aIO_Peaks format. May want to do this in a less hacky way in the future.
…tion. Slightly more efficient (1-2%) and avoids using a 'continue'.
…taFormat expects.
…ing parsed from the argument list
… add 1.0 to the max expected value to avoid Runges phenomenon.
…ooks in, just in case we ever need to test it again. Fast exponential code will be kept in a separate repository.
… the defaults chosen should make it so that the results are exactly the same as with system exp(); however there is the potential for some differences, so bump the minor version instead of revision.
The PGI build in Jenkins failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using cubic spline interpolation to approximate the exp() function in
volmap
results in 2-3x speedup (depending on hardware). The details will be in a soon-to-be-published manuscript from Roe & Brooks, "Improving the Speed of Volumetric Density Map Generation via Cubic Spline Interpolation", JMGM (2021). The idea is similar to what is done to approximate theerfc
function for Ewald, and indeed a new class has been created calledSplineFxnTable
that will use splines to interpolate any function that takes a double as an argument and returns a double.