XAD documentation
Python bindings
The Python bindings closely follow the naming and functions documented here for C++ in the following sections. Each mode is a module with the C++ active types under the same names:
| Python | C++ reference |
|---|---|
xad.adj_1st.Real, xad.adj_1st.Tape | AReal, Tape |
xad.fwd_1st.Real | FReal |
xad.fwd_adj_2nd, xad.fwd_fwd_2nd (Real, and Tape in fwd_adj_2nd) | AD Mode Interface (fwd_adj, fwd_fwd) |
Complex in each mode, xad.cmath | Complex |
CheckpointCallback, ScopedNestedRecording (adj_1st, fwd_adj_2nd) | CheckpointCallback, Tape |
xad.jacobian, xad.hessian | Jacobian, Hessian |
xad.math | Mathematical Operations |
xad.exceptions | Exceptions |
Array in xad.adj_1st and xad.fwd_1st (NumPy arrays of active values) has no C++ counterpart.
Also see the Python notes.
Questions or issues: GitHub Discussions · issues. Would you rather we AAD-enabled your code? Get a free speed-up estimate.