CppAD: A C++ Algorithmic Differentiation Package
20171217
|
void CppAD::local::subgraph::get_argument_variable | ( | const player< Base > * | play, |
size_t | i_op, | ||
pod_vector< size_t > & | variable, | ||
pod_vector< bool > & | work | ||
) |
Determine the set of arguments, for an operator, that are variables.
play | is the player for this operation sequence. |
i_op | is the operator index. If this operator is part of a user function call, it must be the first UserOp in the call. (There is a UserOp at the beginning and end of each call.) |
variable | is the set of argument variables corresponding to this operator. If the operator is a UserOp, the arguments are the variables that are passed into the function call. |
work | this is work space used by arg_variable to make subsequent calls faster. It should not be used by the calling routine. In addition, it is better if work does not drop out of scope between calls. |
Definition at line 45 of file arg_variable.hpp.
Referenced by CppAD::local::subgraph::subgraph_info::get_rev(), and CppAD::local::subgraph::subgraph_info::init_rev().