Use SymEngine to improve performance of symbolic tensor calculus
See original GitHub issue🐞 Problem
I am opening this issue for tracking progress and discussion.
Some functions for symbolic tensor calculus are slow, for example the kerr_christoffels
in the example page takes a noticeable time to complete.
SymEngine can be used to replace SymPy to improve the performance. In support of this, I did a simple benchmark of original christoffels
function in utils and replacing functions in SymPy with SymEngine. I see a 4x performance boost which includes the overhead introduced by type conversion between SymPy and SymEngine.
This issue is related to #70 . Consider switching to SymEngine when refactoring and extending the codebase.
📋 Steps to solve the problem
- Comment below about what you’ve started working on.
- Add, commit, push your changes
- Submit a pull request and add this in comments -
Addresses #<put issue number here>
- Ask for a review in comments section of pull request
- Celebrate your contribution to this project 🎉
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Use SymEngine to improve performance of symbolic tensor calculus ...
I am opening this issue for tracking progress and discussion. Some functions for symbolic tensor calculus are slow, for example the kerr_christoffels in...
Read more >Symbolic Computation and Code Generation for Robotics - arXiv
Abstract—We present SymForce, a library for fast symbolic computation, code generation, and nonlinear optimization for robotics applications ...
Read more >SymbolicNim, symbolic algebra in Nim
It seems BinaryBuilder has support for symengine so if I can get it to work with Nimterop there's a chance I won't have...
Read more >SymPy: symbolic computing in Python - PeerJ
mpz type for x, and GMPY methods for rounding-related operations, improving performance. Most mpmath and SymPy functions use the same naming ...
Read more >Metaticket - SageManifolds Code Improvement Discussion
The reason is that the main bottleneck is symbolic calculus on the tensor field ... If one were to attempt to integrate/use SymEngine?...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@shreyasbapat The plot you want : )
And about this,
If they are doing it, why should we even care? 😉