Go to the documentation of this file.
59 cout <<
"sparse vectors without NULL:" << endl;
72 std::cout <<
"Mismatch found." << endl;
74 std::cout <<
"Mismatch not found" << endl;
82 std::cout <<
"Mismatch found at: " << pos << endl;
89 cout << endl <<
"sparse vectors with NULL:" << endl;
103 std::cout <<
"Mismatch found." << endl;
105 std::cout <<
"Mismatch not found" << endl;
111 std::cout <<
"Mismatch found at: " << pos << endl;
123 std::cout <<
"Mismatch found at: " << pos << endl;
128 catch(std::exception& ex)
130 std::cerr << ex.what() << std::endl;
Algorithms for bm::sparse_vector.
sparse vector with runtime compression using bit transposition method
Sparse constainer sparse_vector<> for integer types using bit-transposition transform.
support "non-assigned" or "NULL" logic
void set_null(size_type idx)
set specified element to unassigned value (NULL)
bool sparse_vector_find_first_mismatch(const SV &sv1, const SV &sv2, typename SV::size_type &midx, bm::null_support null_proc=bm::use_null)
Find first mismatch (element which is different) between two sparse vectors (uses linear scan in bit-...
void push_back(value_type v)
push value back into vector
bm::sparse_vector< unsigned, bm::bvector<> > svector_u32
Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators.
bvector_type::size_type size_type