to_graph

View page source

Create a C++ AD Graph Corresponding to an ADFun Object

Syntax

      cpp_graph graph_obj
      ADFun < Base > fun
      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 .