-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: add out-of-place form relativistic equations #203
feat: add out-of-place form relativistic equations #203
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #203 +/- ##
==========================================
+ Coverage 84.39% 84.43% +0.04%
==========================================
Files 9 9
Lines 692 694 +2
==========================================
+ Hits 584 586 +2
Misses 108 108 ☔ View full report in Codecov by Sentry. |
Thanks! Could you please add a new test for |
Sure, would add the test later this week. |
Also slightly change |
* Run CI Benchmarks with AirspeedVelocity
My guess is that in your application, functions |
I will merge this first. The benchmark failure seems not related to the PR itself. The rest of the discussed optimization will be added in another PR. |
Actually not, |
Also for all cases I tries, out-of-place with |
This pull adds out-of-place form relativistic equations.
PS: I think if γ²v² underflow, γ²v² would be zero, and the result would be zero. So, I think it is safe to remove the
if
statement.PPS: Additionally, I’d like to share a simple test setup. In this setup, test resembles the current code, test2 uses the simplest form, and test3 is a midpoint between the two. Interestingly, test3 appears to run approximately 10% faster than test1.”
Results