CppAD: A C++ Algorithmic Differentiation Package  20130918
template<class Base >
void CppAD::optimize::optimize_run ( size_t  n,
CppAD::vector< size_t > &  dep_taddr,
player< Base > *  play,
recorder< Base > *  rec 
)

Convert a player object to an optimized recorder object.

Template Parameters:
Basebase type for the operator; i.e., this operation was recorded using AD< Base > and computations by this routine are done using type Base.
Parameters:
nis the number of independent variables on the tape.
dep_taddrOn input this vector contains the indices for each of the dependent variable values in the operation sequence corresponding to play. Upon return it contains the indices for the same variables but in the operation sequence corresponding to rec.
playThis is the operation sequence that we are optimizing. It is essentially const, except for play back state which changes while it plays back the operation seqeunce.
recThe input contents of this recording does not matter. Upon return, it contains an optimized verison of the operation sequence corresponding to play.

During reverse mode, information for each CSkip operation

Definition at line 1275 of file optimize.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines