\(\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}} }\)
to_graph¶
View page sourceCreate a C++ AD Graph Corresponding to an ADFun Object¶
Syntax¶
cpp_graph
graph_objADFun
< Base > funto_graph
( graph_obj )Prototype¶
template <class Base, class RecBase>
void CppAD::ADFun<Base,RecBase>::to_graph(
CppAD::cpp_graph& graph_obj )
Base¶
is the type corresponding to this ADFun object; i.e., its calculations are done using the type Base .
RecBase¶
in the prototype above, RecBase is the same type as Base .
graph_obj¶
This is a cpp_graph
object.
The input value of the object does not matter.
Upon return it is a cpp_ad_graph representation of this function.
Restrictions¶
The to_graph
routine is not yet implement for some
possible ADFun operators; see
Missing Operators .
Examples¶
See graph_op_enum examples .