GTSAM
4.0.2
C++ library for smoothing and mapping (SAM)
|
#include <DSFVector.h>
Public Types | |
typedef std::vector< size_t > | V |
Vector of ints. | |
Public Member Functions | |
DSFBase (const size_t numNodes) | |
Constructor that allocates new memory, allows for keys 0...numNodes-1. | |
DSFBase (const std::shared_ptr< V > &v_in) | |
Constructor that uses an existing, pre-allocated vector. | |
size_t | find (size_t key) const |
Find the label of the set in which {key} lives. | |
void | merge (const size_t &i1, const size_t &i2) |
Merge the sets containing i1 and i2. Does nothing if i1 and i2 are already in the same set. | |
A fast implementation of disjoint set forests that uses vector as underly data structure. This is the absolute minimal DSF data structure, and only allows size_t keys Uses rank compression but not union by rank :-(