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,
size_t  r 
)

set number of orders and directions currently allocated

Control of number of orders and directions allocated.

Template Parameters
BaseThe type used during the forward mode computations; i.e., the corresponding recording of operations used the type AD<Base>.
Parameters
cis the number of orders to allocate memory for. If c == 0 then r must also be zero. In this case num_order_taylor_, cap_order_taylor_, and num_direction_taylor_ are all set to zero. In addition, taylor_.clear() is called.
ris the number of directions to allocate memory for. If c == 1 then r must also be one. In all cases, it must hold that r == num_direction_taylor_ || num_order_taylor <= 1 Upon return, num_direction_taylor_ is equal to r.
num_order_taylor_
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.
num_direction_taylor_
The output value of num_direction_taylor_ is equal to r.

Definition at line 156 of file capacity_order.hpp.