sympy2c: Generating fast C/C++ functions and ODE solvers from symbolic expressions
Abstract
The Python package sympy2c allows creation and compilation of fast C/C++ based extension modules from symbolic representations. It can create fast code for the solution of high dimensional ODEs, or numerical evaluation of integrals where sympy fails to compute an anti-âderivative. Based on the symbolic formulation of a stiff ODE, sympy2c analyzes sparsity patterns in the Jacobian matrix of the ODE, and generates loop-âless fast code by unrolling loops in the internally used LU factorization algorithm and by avoiding unnecessary computations involving known zeros.
- Publication:
-
Astrophysics Source Code Library
- Pub Date:
- March 2022
- Bibcode:
- 2022ascl.soft03018S
- Keywords:
-
- Software