Skip to content

v2.3.0

Latest

Choose a tag to compare

@auto-differentiation-dev auto-differentiation-dev released this 25 Nov 14:05
· 2 commits to main since this release

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 for the full list.

If XAD helps you, a GitHub star helps others find it