gtsam  4.0.0
gtsam
gtsam::Scatter Class Reference

Detailed Description

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.

+ Inheritance diagram for gtsam::Scatter:

Public Member Functions

 Scatter ()
 Default Constructor.
 
 Scatter (const GaussianFactorGraph &gfg, boost::optional< const Ordering & > ordering=boost::none)
 Construct from gaussian factor graph, with optional (partial or complete) ordering.
 
void add (Key key, size_t dim)
 Add a key/dim pair.
 
- Public Member Functions inherited from gtsam::FastVector< SlotEntry >
 FastVector ()
 Default constructor.
 
 FastVector (size_t size)
 Constructor from size.
 
 FastVector (size_t size, const SlotEntry &initial)
 Constructor from size and initial values.
 
 FastVector (INPUTITERATOR first, INPUTITERATOR last)
 Constructor from a range, passes through to base class.
 
 FastVector (const Base &x)
 Copy constructor from the base class.
 
 FastVector (const std::vector< SlotEntry, ALLOCATOR > &x)
 Copy constructor from a standard STL container.
 
 operator std::vector< SlotEntry > () const
 Conversion to a standard STL container.
 

Additional Inherited Members

- Public Types inherited from gtsam::FastVector< SlotEntry >
typedef std::vector< SlotEntry, typename internal::FastDefaultVectorAllocator< SlotEntry >::type > Base
 

The documentation for this class was generated from the following files: