CppAD: A C++ Algorithmic Differentiation Package  20130918
template<class Type>
size_t CppAD::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 128 of file pod_vector.hpp.

Referenced by CppAD::sparse_list::add_element(), CppAD::sparse_list::assignment(), CppAD::sparse_list::binary_union(), CppAD::ADFun< Base >::capacity_order(), CppAD::ForJacSweep(), CppAD::forward0sweep(), CppAD::forward1sweep(), CppAD::pod_vector< bool >::operator=(), CppAD::sparse_list::resize(), CppAD::sparse_pack::resize(), CppAD::ADFun< Base >::Reverse(), CppAD::RevHesSweep(), CppAD::RevJacSweep(), CppAD::RevSparseHesBool(), CppAD::RevSparseHesSet(), and CppAD::VecAD< Base >::VecAD().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines