Metaprogramming Applied to Numerical Problems
Computational Physics
2012-06-12 v1 Mathematical Software
Abstract
From the discovery that the template system of C++ forms a Turing complete language in 1994, a programming technique called Template Metaprogramming has emerged that allows for the creation of faster, more generic and better code. Here, we apply Template Metaprogramming to implement a generic Runge-Kutta scheme that can be used to numerically solve ordinary differential equations. We show that using Template Metaprogramming results in a significantly improved performance compared to a classical implementation.
Cite
@article{arxiv.1110.3233,
title = {Metaprogramming Applied to Numerical Problems},
author = {Mario Mulansky and Karsten Ahnert},
journal= {arXiv preprint arXiv:1110.3233},
year = {2012}
}
Comments
4 pages,2 figures,3 listings