xas the independent variable vector. Once the operation sequence is completed, it must be transferred to a function object; see below.
f, using either the function constructor
or the dependent variable specifier
ADFun<Base> f(x, y)
The only other way to stop a recording is using abort_recording . Between when the recording is started and when it stopped, we refer to the elements of
x, and the values that depend on the elements of
VectorADbelow). The size of the vector
x, must be greater than zero, and is the number of independent variables for this AD operation sequence.
abort_op_indexis zero, of if NDEBUG is defined.
VectorADmust be a SimpleVector class with elements of type
AD<Base>. The routine CheckSimpleVector will generate an error message if this is not the case.
Independentstarts the recording for the current thread. The recording must be stopped by a corresponding call to
ADFun<Base> f( x, y)
or abort_recording preformed by the same thread; i.e., thread_alloc::thread_num must be the same.
f.Dependent( x, y)