CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base >
template<class Algo , class ADVector >
CppAD::checkpoint< Base >::checkpoint ( const char *  name,
Algo &  algo,
const ADVector &  ax,
ADVector &  ay,
option_enum  sparsity = atomic_base<Base>::pack_sparsity_enum,
bool  optimize = true 

Constructor of a checkpoint object.

 \param name [in]
 is the user's name for the AD version of this atomic operation.

 \param algo [in/out]
 user routine that compute AD function values
 (not const because state may change during evaluation).

 \param ax [in]
 argument value where algo operation sequence is taped.

 \param ay [out]
 function value at specified argument value.

 \param sparsity [in]
 what type of sparsity patterns are computed by this function,
 pack_sparsity_enum bool_sparsity_enum, or set_sparsity_enum.
 The default value is unspecified.

 \param optimize [in]

l should the operation sequence corresponding to the algo be optimized. The default value is true, but it is sometimes useful to use false for debugging purposes.

Definition at line 608 of file checkpoint.hpp.