-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Improve expo analytical integral stability #21060
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
base: master
Are you sure you want to change the base?
Improve expo analytical integral stability #21060
Conversation
|
This will clash with #20992. Should we close that one? |
Thanks for pointing this out. |
Let's move it here, so we can save a few CI runs. |
Test Results 22 files 22 suites 3d 9h 15m 22s ⏱️ For more details on these failures, see this check. Results for commit dcf9bb8. ♻️ This comment has been updated with latest results. |
|
The tests seem to fail because the commit from #20993 is not in here, but the tests rely on this behaviour. So maybe we should do the following:
@swetank18, what do you think? |
Thanks, that makes sense to me. |
f3dcfcc to
dcf9bb8
Compare
|
Apply clang-format
Hello, no problem! The total code changes look good, but could you squash the last three commits (the tests) into one? Alternatively, we can squash the entire work into one commit when we merge, but I think it's reasonable to have the code changes and the tests in separate commits. |
And in doing that, could you run |
Motivation
The analytical integral of exponential TF1 functions computes differences of
exponentials, which can suffer from numerical cancellation or overflow when the
integration bounds are close or the exponent is large.
Changes
expm1-based formulation
Impact