Convert an AD Variable to a Parameter
Keywords: convert ad variable to parameter Var2par from value_ obtain during taping syntax see also purpose x y example

| Prev | Next |  |  |  |  |  |  |

Convert an AD Variable to a Parameter
Syntax
`y = Var2Par(x)`
See Also
value
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