Repository navigation
Use matrix products for O2GF mode sums - #684
Conversation
|
Thanks. Let's see what the benchmark improvement is. |
Merging this PR will improve performance by 76.73%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
|
Thanks! We would be glad to help in any way we can. What would be helpful for you? What's a hard problem? |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N
The conditioning check only reproduced the old einsum rounding on fits that are already numerically singular; einsum is not more accurate than BLAS there. Remove it, its eigvalsh import, and the test that pinned it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
65560f6 to
41e9194
Compare
Describe your changes
O2GF spends time projecting modes and summing their products along each orbit. Run the action-angle benchmark with ten orbits and 10,000 steps to measure the difference. The patch reuses mode projections and uses matrix products when the conditioning check passes. The test checks the sums for a trajectory that spans fractions of a period.
Checklist
CHANGES.rst)🤖 Generated with Claude Code
https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N