CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<typename Base >
void CppAD::ADFun< Base >::capacity_order ( size_t  c)

set number of orders currently allocated (user API)

User API control of number of orders allocated.

Template Parameters
BaseThe type used during the forward mode computations; i.e., the corresponding recording of operations used the type AD<Base>.
cis the number of orders to allocate memory for. If c == 0, num_order_taylor_, cap_order_taylor_, and num_direction_taylor_ are all set to zero. In addition, taylor_.clear() is called.
The output value of num_order_taylor_ is the mininumum of its input value and c. This minimum is the number of orders that are copied to the new taylor coefficient buffer.
If is zero (one), num_direction_taylor_ is set to zero (one). Otherwise, if num_direction_taylor_ is zero, it is set to one. Othwerwise, num_direction_taylor_ is not modified.

Definition at line 241 of file capacity_order.hpp.