CppAD: A C++ Algorithmic Differentiation Package 20110419
template<class Base >
size_t recorder< Base >::PutOp ( OpCode  op) [inline]

Start recording the next operator in the operation sequence.

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

	NumArg(op)

argument indices in the recording.

Parameters:
opIs the op code corresponding to the the operation that is being recorded.
Returns:
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
	NumRes(op)
With each call to PutOp the return index increases by the number of variables corresponding to this call to PutOp. This index starts at zero after the default constructor and after each call to Erase.

Definition at line 226 of file recorder.hpp.

Referenced by optimize(), optimize_record_csum(), optimize_record_pv(), optimize_record_vp(), and optimize_record_vv().