\(\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}} }\)
cpp_graph_scalar¶
View page sourceC++ AD Graph Scalar Values¶
Syntax¶
Get¶
function_name = graph_obj .
function_name_get
()n_dynamic_ind = graph_obj .
n_dynamic_ind_get
()n_variable_ind = graph_obj .
n_variable_ind_get
()Set¶
graph_obj .
function_name_set
( function_name )graph_obj .
n_dynamic_ind_set
( n_dynamic_ind )graph_obj .
n_variable_ind_set
( n_variable_ind )Set¶
The argument for all the set operations is const.
graph_obj¶
is an cpp_graph
object.
It is const for all the get functions.
function_name¶
is a std::string&
specifying the name of the function
for this graph.
n_dynamic_ind¶
is a size_t
specifying the number of independent dynamic parameters.
n_variable_ind¶
is a size_t
specifying the number of independent variables.