#include <MetisIndex.h>
Classes | |
struct | BiMap |
Public Types | |
typedef std::shared_ptr< MetisIndex > | shared_ptr |
Private Attributes | |
std::vector< int32_t > | adj_ |
BiMap | intKeyBMap_ |
size_t | nKeys_ |
std::vector< int32_t > | xadj_ |
Standard Constructors | |
MetisIndex () | |
template<class FACTORGRAPH > | |
MetisIndex (const FACTORGRAPH &factorGraph) | |
~MetisIndex () | |
Advanced Interface | |
template<class FACTORGRAPH > | |
void | augment (const FACTORGRAPH &factors) |
const std::vector< int32_t > & | xadj () const |
const std::vector< int32_t > & | adj () const |
size_t | nValues () const |
Key | intToKey (int32_t value) const |
The MetisIndex class converts a factor graph into the Compressed Sparse Row format for use in METIS algorithms. Specifically, two vectors store the adjacency structure of the graph. It is built from a factor graph prior to elimination, and stores the list of factors that involve each variable.
Definition at line 37 of file MetisIndex.h.
typedef std::shared_ptr<MetisIndex> gtsam::MetisIndex::shared_ptr |
Definition at line 39 of file MetisIndex.h.
|
inline |
Default constructor, creates empty MetisIndex
Definition at line 62 of file MetisIndex.h.
|
inline |
Definition at line 67 of file MetisIndex.h.
|
inline |
Definition at line 72 of file MetisIndex.h.
|
inline |
Definition at line 88 of file MetisIndex.h.
void gtsam::MetisIndex::augment | ( | const FACTORGRAPH & | factors | ) |
Augment the variable index with new factors. This can be used when solving problems incrementally.
Definition at line 27 of file MetisIndex-inl.h.
Definition at line 94 of file MetisIndex.h.
|
inline |
Definition at line 91 of file MetisIndex.h.
|
inline |
Definition at line 85 of file MetisIndex.h.
|
private |
Definition at line 53 of file MetisIndex.h.
|
private |
Definition at line 54 of file MetisIndex.h.
|
private |
Definition at line 55 of file MetisIndex.h.
|
private |
Definition at line 52 of file MetisIndex.h.