![]() |
Prev | Next |
ax = cppad_py::independent(x)
a_both = cppad_py::independent(x, dynamic)
const vec_double& x
Its specifies the number of independent variables
and their values during the recording.
We use the notation
nx = x.size()
to denote the number of independent variables.
const vec_double& dynamic
Its specifies the number of independent dynamic parameters
and their values during the recording.
We use the notation
nd = dynamic.size()
to denote the number of independent variables.
vec_a_double& ax
and is the vector of independent variables.
It has size
nx
and for
i = 0
to
n-1
ax[i] == x[i]
vec_a_double& a_both
and is the vector of both the independent variables
and independent dynamic parameters.
It has size
nx + nd
.
For
i = 0
to
nx-1
a_both[i] == x[i]
is the i
-th independent variable.
For
i = 0
to
nd-1
a_both[nx + i] == dynamic[i]
is the i
-th independent dynamic parameter.
d_fun
examples use the
ax
return syntax.
The fun_dynamic_xam.cpp
example uses the
a_both
return syntax.