CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base >
addr_t CppAD::local::recorder< Base >::PutLoadOp ( OpCode  op)

Put a vecad load operator in the operation sequence (special case)

Put next LdpOp or LdvOp operator in operation sequence (special cases).

This sets the op code for the next operation in this recording. This call must be followed by putting the corresponding


argument indices in the recording.

opIs the op code corresponding to the the operation that is being recorded (which must be LdpOp or LdvOp).
The return value is the index of the primary (last) variable corresponding to the result of this operation. The number of variables corresponding to the operation is given by
which must be one for this operation. With each call to PutLoadOp or PutOp, the return index increases by the number of variables corresponding to this call to the call. This index starts at zero after the default constructor and after each call to Erase.
The return value for num_load_op_rec() increases by one after each call to this function (and starts at zero after the default constructor or Erase).

Definition at line 243 of file recorder.hpp.

Referenced by CppAD::local::optimize::optimize_run().