CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
size_t CppAD::local::sparse_list::is_subset ( size_t  one_this,
size_t  two_other,
const sparse_list other 
) const

Check if one of two sets is a subset of the other set.

one_thisis the index in this sparse_sizevec object of the first set.
two_otheris the index in other sparse_sizevec object of the second set.
otheris the other sparse_sizevec object which may be the same as this object.
If zero, niether set is a subset of the other. If one, then one is a subset of two and they are not equal. If two, then two is a subset of one and they are not equal. If three, then the sets are equal.

Definition at line 353 of file sparse_list.hpp.

Referenced by binary_intersection(), and binary_union().