#include <Scatter.h>
Public Member Functions | |
GTSAM_EXPORT void | add (Key key, size_t dim) |
Add a key/dim pair. More... | |
GTSAM_EXPORT | Scatter () |
Default Constructor. More... | |
GTSAM_EXPORT | Scatter (const GaussianFactorGraph &gfg) |
Construct from gaussian factor graph, without ordering. More... | |
GTSAM_EXPORT | Scatter (const GaussianFactorGraph &gfg, const Ordering &ordering) |
Construct from gaussian factor graph, with (partial or complete) ordering. More... | |
Private Member Functions | |
iterator | find (Key key) |
Find the SlotEntry with the right key (linear time worst case) More... | |
Scatter is an intermediate data structure used when building a HessianFactor incrementally, to get the keys in the right order. In spirit, it is a map from global variable indices to slot indices in the union of involved variables. We also include the dimensionality of the variable.
|
inline |
|
explicit |
Construct from gaussian factor graph, without ordering.
Definition at line 36 of file Scatter.cpp.
|
explicit |
Construct from gaussian factor graph, with (partial or complete) ordering.
Definition at line 39 of file Scatter.cpp.
Add a key/dim pair.
Definition at line 76 of file Scatter.cpp.
|
private |
Find the SlotEntry with the right key (linear time worst case)
Definition at line 81 of file Scatter.cpp.