10 #ifndef _fei_SparseRowGraph_hpp_
11 #define _fei_SparseRowGraph_hpp_
13 #include <fei_macros.hpp>
23 class SparseRowGraph {
75 return( !(*
this == othergraph) );
88 std::vector<int>::const_iterator rowNumbers_iter =
89 std::lower_bound(srg.rowNumbers.begin(), srg.rowNumbers.end(), row);
90 if (rowNumbers_iter == srg.rowNumbers.end() || *rowNumbers_iter != row) {
94 size_t offset = rowNumbers_iter - srg.rowNumbers.begin();
95 return srg.rowOffsets[offset];
virtual ~SparseRowGraph()
int find_row_start(int row, const SparseRowGraph &srg)
bool operator==(const fei::SparseRowGraph &othergraph) const
std::vector< int > rowNumbers
bool operator!=(const fei::SparseRowGraph &othergraph) const
std::vector< int > packedColumnIndices
std::vector< int > rowOffsets