CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base >
size_t CppAD::local::ADTape< Base >::AddVec ( size_t  length,
const pod_vector< Base > &  data 

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.

lengthsize of the VecAD<Base> object.
datainitial values for the VecAD<Base> object (values before it becomes a variable).
index of the start of this vector in the list of vector indices. The value for this vector index is the length of the vector. There are 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.
All these operates are preformed in Rec_, so we should move this routine from ADTape<Base> to recorder<Base>.

Definition at line 198 of file ad_tape.hpp.

Referenced by CppAD::VecAD_reference< Base >::operator=().