Skip to content
r.

clad

vgvassilev/clad · Public GitHub repository

clad -- automatic differentiation for C/C++

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

clad live demo screenshot
Captured from the live demo · 2026-11-23

About this project

Author-written excerpt from the project README.

Clad is a source-transformation automatic differentiation (AD) library for C++, implemented as a plugin for the Clang compiler.

Clad enables automatic differentiation (AD) for C++. It is based on LLVM compiler infrastructure and is a plugin for Clang compiler. Clad is based on source code transformation. Given C++ source code of a mathematical function, it can automatically generate C++ code for computing derivatives of the function. It supports both forward-mode and reverse-mode AD.Clad has extensive coverage of modern C++ features and a robust fallback and recovery system in place.

Requirements and intended audience

Clad is a source-transformation automatic differentiation (AD) library for C++, implemented as a plugin for the Clang compiler.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-11-02. Source: https://github.com/vgvassilev/clad/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-11-13. Saved release: v2.5 · 2026-09-28. These dates do not guarantee ongoing maintenance.

Technologies
C++
Licence
LGPL-3.0. Changes and distribution carry source-sharing and notice conditions; linking rules depend on the licence version.
Demo check
A public page loaded on 2026-11-23. This does not test every feature.

Browse related categories