CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base>
template<typename VectorAD >
CppAD::ADFun< Base >::ADFun ( const VectorAD &  x,
const VectorAD &  y 
)

ADFun constructor from an operation sequence.

The C++ syntax for this operation is

     ADFun<Base> f(x, y)

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
Baseis the base for the recording that will be stored in the object f; i.e., the operations were recorded using the type AD<Base>.
VectorADis a simple vector class with elements of typea AD<Base>.
Parameters
xis the independent variable vector for this ADFun object. The domain dimension of this object will be the size of x.
yis 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 380 of file fun_construct.hpp.