xad v2.3.0
Permanent link:
cppdashboard.dev/r/2026/11/xad-v2-3-0The 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.
Release notes
## What's New ### New math functions - `tgamma` and `lgamma` for XAD types, with first- and higher-order derivatives, and `xad::digamma` for `double`, `float` and XAD types - `rint`, `nearbyint`, `lrint`, `llrint`, `logb`, `scalbln` and `fdim` for XAD types and expressions, tested in first and second order, forward and adjoint mode - C++20 `std::format` support for `AReal` and `FReal`, when the standard library provides it ### New samples - Black-Scholes Greeks in forward and adjoint mode - Implied volatility sensitivities via the implicit function theorem - Cross-gamma matrix of a basket option in forward over adjoint mode - Multi-threaded Monte Carlo basket with one tape per thread - Heat equation gradient with checkpointing - American put on a PDE grid with an external-function tridiagonal solve - Heston model calibration with an adjoint-mode Jacobian ### Graph recording - CMake option `XAD_ENABLE_GRAPH` (off by default) builds and installs graph recording; the new math functions can be recorded in a graph too - Graph replay of `pow(x, y)` now gives the same exponent derivative as the tape for a zero, negative or NaN base See the [CHANGELOG](https://github.com/auto-differentiation/xad/blob/v2.3.0/CHANGELOG.md) for the full list. If XAD helps you, a GitHub star helps others find it
Share this resource