from_json

View page source

ADFun Object Corresponding to a Json AD Graph

Syntax

      ADFun < Base > fun
      fun . from_json ( json )

Prototype

template <class Base, class RecBase>
void CppAD::ADFun<Base,RecBase>::from_json(const std::string& json)

json

is a json_ad_graph .

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 .

Example

The file from_json.cpp is an example and test of this operation.