auto-differentiation/xad
The fastest automatic differentiation library for C++, with Python bindings. Forward, adjoint and higher-order derivatives, checkpointing, Eigen support and graph recording. Reproducible benchmarks against CppAD, Adept and autodiff.
What it solves
XAD calculates exact mathematical derivatives (gradients and sensitivities) of existing C++ and Python code quickly, with low runtime overhead and a small memory footprint.
How it works
It uses automatic differentiation via operator overloading to compute forward, adjoint (reverse), and higher-order derivatives. For repetitive workloads like Monte Carlo simulations, it can record computations into a graph once, compile them, and replay them many times.
Who it’s for
It is designed for C++ and Python developers, quants, and researchers who need high-performance derivative calculations for repetitive numerical workloads or quantitative finance.
Highlights
- Forward and reverse (adjoint) modes with support for any order
- Vector mode for computing multiple derivatives simultaneously
- Graph recording and replay for repetitive workloads
- Built-in support for the Eigen linear algebra library and Python via pip
- Checkpointing support for efficient memory management in large applications
Related
- Project
- Project
- Project
- Project
- Project