\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
chkpoint_two_chk_fun¶
View page sourceUsing Checkpoint Functions¶
Syntax¶
Purpose¶
Given ax ,
this call computes the corresponding value of ay .
If AD
< Base > operations are being recorded,
it enters the computation as an atomic_three
operation in the recording;
see Start Recording .
chk_fun¶
This object must have been created using the chkpoint_two constructor.
ADVector¶
The type ADVector must be a
simple vector class with elements of type
AD
< Base > .
ax¶
This argument has prototype
const
ADVector &ax
and its size equal to n = fun . Domain
()
where fun is the ADFun
< Base >
function in used the constructor for chk_fun .
It specifies vector \(x \in \B{R}^n\)
at which we are computing an AD
< Base > version of
\(y = g(x)\).
ay¶
This argument has prototype
ADVector &
ay
and its size must be equal to m = fun . Range
() .
The input values of its elements do not matter.
Upon return, it is an AD
< Base > version of
\(y = g(x)\).