\(\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_vector¶
C++ AD Graph Vector Values¶
Syntax¶
Size¶
discrete_name_vec_size ()atomic_name_vec_size ()print_text_vec_size ()constant_vec_size ()operator_vec_size ()operator_arg_size ()dependent_vec_size ()Get¶
discrete_name_vec_get ( index )atomic_name_vec_get ( index )print_text_vec_get ( index )constant_vec_get ( index )operator_vec_get ( index )operator_arg_get ( index )dependent_vec_get ( index )Push Back¶
discrete_name_vec_push_back ( discrete_name )atomic_name_vec_push_back ( atomic_name )print_text_vec_push_back ( print_text )constant_vec_push_back ( constant )operator_vec_push_back ( op_enum )operator_arg_push_back ( argument )dependent_vec_push_back ( node_index )push_back¶
The arguments for all the push_back functions are const. The size of the specified vector before a push_back, is the index in the vector corresponding to the argument value. The size of the vector after the push_back is the size before plus one.
graph_obj¶
is an cpp_graph object.
It is const for the size, get, and find functions and
not const for the push_back functions.
discrete_name¶
is a std::string equal to the name of a Discrete function.
atomic_name¶
is a std::string equal to the name of an atomic_three function.
print_text¶
is a std::string equal to the text to be printed.
op_enum¶
is the graph_op_enum for corresponding operator.
node_index¶
is the node index for the corresponding dependent variable with the corresponding index in dependent_vec .
discrete_index¶
is the index such that
discrete_name == graph_obj .
discrete_name_vec_get( discrete_index )
If there is no such index,
discrete_index == graph_obj .
discrete_name_vec_size()
atomic_index¶
is the index such that
atomic_name == graph_obj .
atomic_name_vec_get( atomic_index )
If there is no such index,
atomic_index == graph_obj .
atomic_name_vec_size()
print_index¶
is the index such that
print_text == graph_obj .
print_text_vec_get( print_index )
If there is no such index,
print_index == graph_obj .
print_text_vec_size()