CppAD: A C++ Algorithmic Differentiation Package
20171217
|
|
inline |
Shared documnetation for sparsity operations corresponding to op = StpvOp or StvvOp (not called).
Vector_set | is the type used for vectors of sets. It can be either sparse_pack or sparse_list. |
op | is the code corresponding to this operator; i.e., StpvOp, StvpOp, or StvvOp. |
arg | arg[0] is the offset corresponding to this VecAD vector in the combined array. arg[2] The set with index arg[2] in var_sparsity is the sparsity pattern corresponding to y. (Note that arg[2] > 0 because y is a variable.) |
num_combined | is the total number of elements in the VecAD address array. |
combined | combined [ arg[0] - 1 ] is the index of the set in vecad_sparsity corresponding to the sparsity pattern for the vector v. We use the notation i_v below which is defined by i_v = combined[ \a arg[0] - 1 ] |
var_sparsity | The set with index arg[2] in var_sparsity is the sparsity pattern for y. This is an input for forward mode operations. For reverse mode operations: The sparsity pattern for v is added to the spartisy pattern for y. |
vecad_sparsity | The set with index i_v in vecad_sparsity is the sparsity pattern for v. This is an input for reverse mode operations. For forward mode operations, the sparsity pattern for y is added to the sparsity pattern for the vector v. |
Definition at line 200 of file store_op.hpp.