-
Notifications
You must be signed in to change notification settings - Fork 0
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
Benchmark/nbody #21
Benchmark/nbody #21
Conversation
fixes #9 |
d8ab9f0
to
1d904e8
Compare
e71b9f2
to
f65ae72
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent!
def offsetMomentum(px: Double, py: Double, pz: Double, body: Body) = { | ||
Body( | ||
body.x, body.y, body.z, | ||
0.0 -(px / SOLAR_MASS), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a definition def neg(x: Double): Double
to the standard library. Likewise for the bitshift operations you've added in another benchmark. Perhaps you could make a pull request on the effekt repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
Co-authored-by: phischu <[email protected]>
No description provided.