ADFun constructor from an operation sequence.
The C++ syntax for this operation is
The operation sequence that started with the previous call Independent(x)
, and that ends with this operation, is stored in this ADFun<Base>
object f
.
- Template Parameters:
-
Base | is the base for the recording that will be stored in the object f ; i.e., the operations were recorded using the type AD<Base> . |
VectorAD | is a simple vector class with elements of typea AD<Base> . |
- Parameters:
-
x | is the independent variable vector for this ADFun object. The domain dimension of this object will be the size of x. |
y | is the dependent variable vector for this ADFun object. The range dimension of this object will be the size of y. |
- Taylor Coefficients
- A zero order forward mode sweep is done, and if NDEBUG is not defined the resulting values for the depenedent variables are checked against the values in y. Thus, the zero order Taylor coefficients corresponding to the value of the x vector are stored in this ADFun object.
Definition at line 391 of file fun_construct.hpp.