CppAD: A C++ Algorithmic Differentiation Package
20171217
|
|
inline |
Determines which arguments are variaibles for an operator.
op | is the operator. Note that CSkipOp and CSumOp are special cases because the true number of arguments is not equal to NumArg(op) and the true number of arguments num_arg can be large. It may be more efficient to handle these cases separately (see below). |
arg | is the argument vector for this operator. |
is_variable | If the input value of the elements in this vector do not matter. Upon return, for j < NumArg(op), the j-th argument for this operator is a variable index if and only if is_variable[j] is true. Note that the variable index 0, for the BeginOp, does not correspond to a real variable and false is returned for this case. |
Definition at line 911 of file op_code.hpp.
Referenced by CppAD::local::subgraph::get_argument_variable(), and CppAD::local::optimize::match_op().