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 .
Convert From an AD Type to its Base Type

Syntax
b = Value(x)

See Also
var2par

Purpose
Converts from an AD type to the corresponding base type .

x
The argument x has prototype
    const AD<
Base> &x

b
The return value b has prototype
    
Base b

Operation Sequence
The result of this operation is not an AD of Base object. Thus it will not be recorded as part of an AD of Base operation sequence .

Restriction
The argument x must not be a variable or dynamic parameter because its dependency information would not be included in the Value result b .

Example
The file value.cpp contains an example and test of this operation.
Input File: include/cppad/core/value.hpp