You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _pages/clad.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,12 @@ Since Clad is a Clang plugin, it must be properly attached when Clang compiler i
13
13
```
14
14
clang -cc1 -x c++ -std=c++11 -load /full/path/to/lib/clad.so -plugin clad SourceFile.cpp
15
15
```
16
-
Clad provides four API functions:
16
+
Clad provides five API functions:
17
17
-`clad::differentiate` to use forward-mode AD
18
18
-`clad::gradient` to use reverse-mode AD
19
19
-`clad::hessian` to compute Hessian matrix using a combination of forward-mode and reverse-mode AD
20
20
-`clad::jacobian` to compute Jacobian matrix using reverse-mode AD
21
+
-`clad::estimate-error` to compute the floating-point error of the given program using reverse-mode AD.
21
22
22
23
API functions are used to label an existing function for differentiation.
23
24
Both functions return a functor object containing the generated derivative which can be called via `.execute` method, which forwards provided arguments to the generated derivative function. Example:
0 commit comments