Prev Next

@(@\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 .
ADFun Object Corresponding to a Json AD Graph

Syntax

    ADFun<
Basefun
    
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.
Input File: include/cppad/core/graph/from_json.hpp