| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Both functions built small, fixed-size (3x3/4x4/6x6) results out of generic NumPy helpers (np.cross/unitvec/np.stack in trnorm, np.block in tr2adjoint) whose dispatch overhead - built for arbitrary shapes and broadcasting - dominates cost at this size. Same pattern as the isR/ishom speedup in rai-opensource#213. Replaced with explicit scalar arithmetic (trnorm) and direct pre-allocated slice-assignment (tr2adjoint), dtype preserved via np.zeros(..., dtype=T.dtype) so tr2adjoint's documented SymPy support is unaffected. ~12x faster trnorm, ~2.7x faster tr2adjoint standalone. End to end: SE3 @ SE3 (which normalizes via trnorm) drops from ~30us to ~4us. Verified bit-for-bit numeric equivalence against the prior implementation over 200 random SO(3)/SE(3) trials, plus symbolic (SymPy dtype=object) equivalence for tr2adjoint. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
⚠️ Please install the Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Test plan
🤖 Generated with Claude Code