Eigen-AD:本征文库的化学鉴别
Eigen-AD: Algorithmic Differentiation of the Eigen Library
摘要:
在这项工作中,我们提出了有用的技术和可能的增强时,应用程序的微分(AD)工具的线性代数库本征使用我们的内部AD通过重载(AD-O)工具dco/c++作为案例研究。在概述了为官方Eigen版本计算导数时的性能和可行性问题后,我们提出了Eigen-AD,它通过为Eigen提供附加模块来为AD-O工具提供不同的优化选项。功能范围包括更好地处理表达式模板以提高一般性能,以及实现符号派生表达式以计算某些核心操作的导数。软件设计允许AD-O工具提供专门化以自动包括符号操作,从而通过重载保持普通AD的外观和感觉。作为一个展示,dco/c++提供了这样一个模块,其显着的性能改进是通过基准测试验证。
英文摘要:
In this work we present useful techniques and possible enhancements when applying an Algorithmic Differentiation (AD) tool to the linear algebra library Eigen using our in-house AD by overloading (AD-O) tool dco/c++ as a case study. After outlining performance and feasibility issues when calculating derivatives for the official Eigen release, we propose Eigen-AD, which enables different optimization options for an AD-O tool by providing add-on modules for Eigen. The range of features includes a better handling of expression templates for general performance improvements, as well as implementations of symbolically derived expressions for calculating derivatives of certain core operations. The software design allows an AD-O tool to provide specializations to automatically include symbolic operations and thereby keep the look and feel of plain AD by overloading. As a showcase, dco/c++ is provided with such a module and its significant performance improvements are validated by benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。