物理学 > 计算物理
[提交于 2011年10月14日]
标题:Metaprogramming Applied to Numerical Problems
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Mario Mulansky[v1] 2011年10月14日 星期五 15:04:14 UTC