CppAD: A C++ Algorithmic Differentiation Package
20130102
|
void player< Base >::start_reverse | ( | OpCode & | op, |
const addr_t *& | op_arg, | ||
size_t & | op_index, | ||
size_t & | var_index | ||
) | [inline] |
Start a play back of the recording during a reverse sweep.
Use repeated calls to next_reverse to play back one operator at a time.
op | The input value of op does not matter. Its output value is the last operator in the recording; i.e., EndOp. |
op_arg | The input value of *op_arg does not matter. Its output value is the beginning of the vector of argument indices for the last operation; (there are no arguments for the last operation so op_arg is invalid). |
op_index | The input value of op_index does not matter. Its output value is the index of the last operator in the recording. |
var_index | The input value of var_index does not matter. Its output value is the index of the primary (last) result corresponding to the the last operator (which must be a EndOp). (there are no results for the last operation so var_index is invalid). |
Definition at line 461 of file player.hpp.
Referenced by optimize(), ReverseSweep(), RevHesSweep(), and RevJacSweep().