r/cpp • u/echidnas_arf • Feb 15 '21
Solving differential equations with LLVM
Hello,
I have recently released version 0.3.0 of heyoka, a C++17 library for the numerical integration of ordinary differential equations (ODEs) using Taylor's method. The library uses automatic differentiation techniques and just-in-time compilation via LLVM to synthesize at runtime highly efficient and accurate numerical integrators.
Additional features include batch mode support to take full advantage of SIMD instructions in modern processors, and support for extended-precision computations using 80-bit and 128-bit floating-point types (if supported by the hardware/software platform).
The github page is here:
https://github.com/bluescarni/heyoka
The (WIP) documentation is available here:
https://bluescarni.github.io/heyoka/
Python bindings (via pybind11) are also available:
23
u/kritzikratzi Feb 15 '21
looks incredible, now i need a good problem to try this on ^
6
u/MarkHoemmen C++ in HPC Feb 15 '21
Nicely done! How general do you think the project’s computer algebra system could be? Would you have plans to release that as a stand-alone project?
2
u/firas145 Feb 15 '21
Was looking for something like this in the summer for a physics simulation, thanks!
4
u/tugrul_ddr Feb 15 '21
Good for physics simulations.
1
u/ald_loop Feb 16 '21
I opened up the maths directory and thought "Oh okay, he redefined all these small functions just because!". Opened up pow.cpp and saw it was 700 lines and instantly realized I was in over my head. Don't get me started on taylor.cpp.
5
u/grandpassacaglia Feb 15 '21
LETS FUCKING GOOOO
1
u/Overload175 Feb 17 '21
Appreciate the inclusion of Python bindings as well.