Operator overloading records a "tape" of operations.

Other Algorithms 1 implementation

Forward mode: propagates derivatives from inputs to outputs. Reverse mode: propagates derivatives from outputs to inputs. Reverse mode is more efficient for many inputs, few outputs.

Implementations

CppAD

References

  • Griewank, Walther (2008). "Evaluating Derivatives: Principles and Techniques of Algorithmic Differentiation", 2nd ed. SIAM.