Baseoperation sequence that started with the call
and store the operation sequence in
f. The operation sequence defines an AD function @[@ F : B^n \rightarrow B^m @]@ where @(@ B @)@ is the space corresponding to objects of type
Base. The value @(@ n @)@ is the dimension of the domain space for the operation sequence. The value @(@ m @)@ is the dimension of the range space for the operation sequence (which is determined by the size of
The AD of
Baseoperation sequence is stored in
f; i.e., it becomes the operation sequence corresponding to
f. If a previous operation sequence was stored in
f, it is deleted.
xmust be the vector argument in a previous call to Independent . Neither its size, or any of its values, are allowed to change between calling
(see ADvector below). The length of
const ADvector &y
ymust be greater than zero and is the dimension of the range space for
ADvectormust be a SimpleVector class with elements of type
AD<Base>. The routine CheckSimpleVector will generate an error message if this is not the case.
Independent(x)was called, will stop recording. The AD operation sequence will be transferred from the tape to the object
fand the tape will then be deleted.
is zero (see size_order ).
Independent, and the corresponding call to
ADFun<Base> f( x, y)
or abort_recording , must be preformed by the same thread; i.e., thread_alloc::thread_num must be the same.
f.Dependent( x, y)