ASCL.net

Astrophysics Source Code Library

Making codes discoverable since 1999

ASCL Code Record

[ascl:2203.018] sympy2c: Generating fast C/C++ functions and ODE solvers from symbolic expressions

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.

Code site:
https://cosmology.ethz.ch/research/software-lab/sympy2c.html https://pypi.org/project/sympy2c/ https://cosmo-gitlab.phys.ethz.ch/cosmo_public/sympy2c
Used in:
https://ui.adsabs.harvard.edu/abs/2021arXiv211208395M
Described in:
https://ui.adsabs.harvard.edu/abs/2022arXiv220311945S
Bibcode:
2022ascl.soft03018S

Views: 1856

ascl:2203.018
Add this shield to your page
Copy the above HTML to add this shield to your code's website.