CppAD: A C++ Algorithmic Differentiation Package
20171217
|
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.
Base | The type used during the forward mode computations; i.e., the corresponding recording of operations used the type AD<Base>. |
c | is 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. |
r | is 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. |
r
. Definition at line 156 of file capacity_order.hpp.