Seasons's Greetings by AD
Computational Engineering, Finance, and Science
2025-11-18 v2
Abstract
We use Algorithmic Differentiation (AD) to implement type-generic tangent and adjoint versions of in C++. We run an instantiation for char-arithmetic and we print the gradient at to std::cout, yielding the output ``Merry Xmas''. Similar instantiations of type-generic second-order tangent and second-order adjoint versions of yield ``Happy 2026'' at Prepend a sufficiently large number of zeros to the input vector to explore the varying run times of the different derivative codes. The entire source code can be found on https://github.com/un110076/SeasonsGreetings.
Cite
@article{arxiv.2402.09409,
title = {Seasons's Greetings by AD},
author = {Uwe Naumann},
journal= {arXiv preprint arXiv:2402.09409},
year = {2025}
}
Comments
Code available on github