![]() |
Prev | Next |
ax = cppad_py.independent(x)
(ax, adynamic) = cppad_py.independent(x)
float
elements.
It specifies the number of independent variables
and their values during the recording.
We use
nx = x.size
to denote the number of independent variables.
float
elements.
It specifies the number of independent dynamic parameters
and their values during the recording.
We use
nd = dynamic.size
to denote the number of independent dynamic parameters.
a_double
elements.
This is the vector of independent variables.
It has size
nx
and for
i = 0
to
n-1
ax[i].value() == x[i]
a_double
elements.
This is the vector of independent dynamic parameters.
It has size
nd
and for
i = 0
to
n-1
adynamic[i].value() == dynamic[i]
d_fun
examples use this function.
The fun_dynamic_xam.py
uses the syntax that includes
dynamic parameters.