![]() |
Prev | Next |
cpp_graph graph_obj
ADFun<Base> fun
fun.from_graph(graph_obj)
fun.from_graph(graph_obj, dyn2var, var2dyn)
template <class Base, class RecBase> void CppAD::ADFun<Base,RecBase>::from_graph( const CppAD::cpp_graph& graph_obj )
template <class Base, class RecBase> void CppAD::ADFun<Base,RecBase>::from_graph( const CppAD::cpp_graph& graph_obj , const CppAD::vector<bool>& dyn2var , const CppAD::vector<bool>& var2dyn )Base
Base
.
RecBase
is the same type as
Base
.
fun
.
fun
.
dyn2var
and
var2dyn
are not present,
the independent dynamic parameters and independent variables in
fun
are the same as for the graph.
Otherwise, they are described below.
m_true
(
m_false
) be the number of true (false)
elements of
dyn2var
.
n_true
(
n_false
) be the number of true (false)
elements of
var2dyn
.
m_false
independent dynamic parameters in
fun
correspond to the false components of
dyn2var
and have the same order as in the graph.
The next
n_true
independent dynamic parameters in
fun
correspond to the true components of
var2dyn
and have the same order as in the graph.
m_true
independent variables in
fun
correspond to the true components of
dyn2var
and have the same order as in the graph.
The next
n_false
independent variables in
fun
correspond to the false components of
var2dyn
and have the same order as in the graph.