@(@\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}} }@)@This is cppad-20221105 documentation. Here is a link to its
current documentation
.
Checkpoint Functions with Dynamic Parameters: Example and Test
Purpose
This example demonstrates using dynamic parameters with a
chkpoint_two
function.
g(x)
For this example, the checkpoint function
@(@
g : \B{R}^2 \rightarrow \B{R}^3
@)@ is defined by
@[@
g(x)
=
\left( \begin{array}{c}
x_0 \cdot p_0 \\
x_0 \cdot x_ 0 \\
x_1 \cdot x_ 0
\end{array} \right)
@]@
where @(@
p_0
@)@ is a dynamic parameter in the definition of @(@
g(x)
@)@
f(x)
The function @(@
f(x) : \B{R}^2 \rightarrow \B{R}^3
@)@
is defined by @(@
f(x) = q_0 \cdot g(x)
@)@ where @(@
q_0
@)@
is a dynamic parameter in the definition of @(@
f(x)
@)@.