Prev Next

Convert an AD Variable to a Parameter

Syntax
y = Var2Par(x)

Purpose
Returns a parameter y with the same value as the variable x .

x
The argument x has prototype
     const AD<
Base> &x
The argument x may be a variable or parameter.

y
The result y has prototype
     AD<
Base> &y
The return value y will be a parameter.

Example
The file var2par.cpp contains an example and test of this operation. It returns true if it succeeds and false otherwise.
Input File: cppad/local/var2par.hpp