• Home
  • Search
  • Efficient Expression Templates for Operator Overloading-Based Automatic Differentiation
  • Open Access IconOpen Access
  • Cite Icon58
  • https://doi.org/10.1007/978-3-642-30023-3_28Copy DOI Icon

Efficient Expression Templates for Operator Overloading-Based Automatic Differentiation

  • Jan 1, 2012
  • Eric Phipps +1 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Expression templates are a well-known set of techniques for improving the efficiency of operator overloading-based forward mode automatic differentiation schemes in the C\(++\) programming language by translating the differentiation from individual operators to whole expressions. However standard expression template approaches result in a large amount of duplicate computation, particularly for large expression trees, degrading their performance. In this paper we describe several techniques for improving the efficiency of expression templates and their implementation in the automatic differentiation package Sacado (Phipps et al., Advances in automatic differentiation, Lecture notes in computational science and engineering, Springer, Berlin, 2008; Phipps and Gay, Sacado automatic differentiation package. http://trilinos.sandia.gov/packages/sacado/, 2011). We demonstrate their improved efficiency through test functions as well as their application to differentiation of a large-scale fluid dynamics simulation code.

Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.