计算机科学 > 符号计算
[提交于 2017年5月5日]
标题:Compile-Time Symbolic Differentiation Using C++ Expression Templates
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Template metaprogramming is a popular technique for implementing compile time mechanisms for numerical computing. We demonstrate how expression templates can be used for compile time symbolic differentiation of algebraic expressions in C++ computer programs. Given a positive integer $N$ and an algebraic function of multiple variables, the compiler generates executable code for the $N$th partial derivatives of the function. Compile-time simplification of the derivative expressions is achieved using recursive templates. A detailed analysis indicates that current C++ compiler technology is already sufficient for practical use of our results, and highlights a number of issues where further improvements may be desirable.
提交历史
来自:Drosos Kourounis[v1] 2017年5月5日 星期五 00:00:00 UTC