CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
void CppAD::local::sparse_pack::binary_intersection ( size_t  this_target,
size_t  this_left,
size_t  other_right,
const sparse_pack other 
)
inline

Assing a set equal to the intersection of two other sets.

Parameters
this_targetis the index (in this sparse_pack object) of the set being assinged.
this_leftis the index (in this sparse_pack object) of the left operand for the intersection operation. It is OK for this_target and this_left to be the same value.
other_rightis the index (in the other sparse_pack object) of the right operand for the intersection operation. It is OK for this_target and other_right to be the same value.
otheris the other sparse_pack object (which may be the same as this sparse_pack object).
Checked Assertions
  • this_target < n_set_
  • this_left < n_set_
  • other_right < other.n_set_
  • n_pack_ == other.n_pack_

Definition at line 389 of file sparse_pack.hpp.