Prev Next to_graph

@(@\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}} }@)@This is cppad-20221105 documentation. Here is a link to its current documentation .
Create a C++ AD Graph Corresponding to an ADFun Object

Syntax

    cpp_graph 
graph_obj
    ADFun<
Basefun
    
fun.to_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 .
Input File: include/cppad/core/graph/to_graph.hpp