CppAD: A C++ Algorithmic Differentiation Package
20130918
|
size_t CppAD::ADTape< Base >::AddVec | ( | size_t | length, |
const pod_vector< Base > & | data | ||
) | [private] |
Put initialization for a VecAD<Base> object in the tape.
This routine should be called once for each VecAD object when just before it changes from a parameter to a variable.
length | size of the VecAD<Base> object. |
data | initial values for the VecAD<Base> object (values before it becomes a variable). |
length
indices following for this vector. The values for these vector indices are the corresponding parameter indices in the tape for the initial value of the corresponding vec_ad element.Rec_
, so we should move this routine from ADTape<Base>
to recorder<Base>
. Definition at line 202 of file ad_tape.hpp.
Referenced by CppAD::VecAD_reference< Base >::operator=().