CppAD: A C++ Algorithmic Differentiation Package
20171217
|
|
inline |
Forward mode Jacobian sparsity pattern for all unary operators.
The C++ source code corresponding to a unary operation has the form
z = fun(x)
where fun is a C++ unary function, or it has the form
z = x op q
where op is a C++ binary unary operator and q is a parameter.
Vector_set | is the type used for vectors of sets. It can be either sparse_pack or sparse_list. |
i_z | variable index corresponding to the result for this operation; i.e., z. |
i_x | variable index corresponding to the argument for this operator; i.e., x. |
sparsity | Input: The set with index arg[0] in sparsity is the sparsity bit pattern for x. This identifies which of the independent variables the variable x depends on. Output: The set with index i_z in sparsity is the sparsity bit pattern for z. This identifies which of the independent variables the variable z depends on. |
Definition at line 66 of file sparse_unary_op.hpp.
Referenced by for_jac_sweep().