CppAD: A C++ Algorithmic Differentiation Package  20130102
template<class Type>
size_t pod_vector< Type >::extend ( size_t  n) [inline]

Increase the number of elements the end of this vector.

Parameters:
nis the number of elements to add to end of this vector.
Returns:
is the number of elements in the vector before extend was extended.
  • If Type is plain old data, new elements are not initialized; i.e., their constructor is not called. Otherwise, the constructor is called for each new element.
  • This is the only routine that allocates memory for pod_vector. and it uses thread_alloc for this allocation, hence this determines which thread corresponds to this vector (when in parallel mode).
  • If the resulting length of the vector would be more than max_length_, and NDEBUG is not defined, a CPPAD_ASSERT is generated.

Definition at line 130 of file pod_vector.hpp.

Referenced by ADFun< Base >::ADFun(), ADFun< Base >::capacity_taylor(), ForJacSweep(), forward0sweep(), forward_sweep(), pod_vector< Pack >::operator=(), recorder< Base >::PutArg(), recorder< Base >::PutOp(), recorder< Base >::PutPar(), recorder< Base >::PutTxt(), recorder< Base >::PutVecInd(), sparse_pack::resize(), ADFun< Base >::Reverse(), RevHesSweep(), RevJacSweep(), RevSparseHesBool(), RevSparseHesSet(), and CppAD::VecAD< Base >::VecAD().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines