Var2Par

View page source

Convert an AD Variable or Dynamic Parameter to a Constant

Syntax

y = Var2Par ( x )

See Also

Value

Purpose

Returns a constant parameter y with the same value as x .

x

The argument x has prototype

const AD < Base > & x

The argument x may be a variable, dynamic parameter, or constant parameter.

y

The result y has prototype

AD < Base > & y

and is a constant parameter.

Example

The file var2par.cpp contains an example and test of this operation.