22#include <gtsam/dllexport.h>
34struct GTSAM_EXPORT KeyInfoEntry {
39 KeyInfoEntry() =
default;
40 KeyInfoEntry(
size_t index,
size_t dimension,
size_t start)
41 : index(index), dim(dimension), start(start) {}
51class GTSAM_EXPORT
KeyInfo :
public std::map<Key, KeyInfoEntry> {
53 using Base = std::map<Key, KeyInfoEntry>;
65 explicit KeyInfo(
const std::map<Key, size_t>& dimensions);
71 size_t numCols()
const {
return numCols_; }
77 std::vector<size_t> colSpec()
const;
83 Vector x0vector()
const;
89 void initialize(
const std::map<Key, size_t>& dimensions);
99 const KeyInfo& keyInfo);
typedef and functions to augment Eigen's VectorXd
Variable ordering for the elimination algorithm.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
VectorValues buildVectorValues(const Vector &vector, const KeyInfo &keyInfo)
Split a flat vector into keyed blocks using KeyInfo offsets and dimensions.
Definition KeyInfo.cpp:107
A Linear Factor Graph is a factor graph where all factors are Gaussian, i.e.
Definition GaussianFactorGraph.h:77
KeyInfo()=default
Construct an empty layout.
const Ordering & ordering() const
Return the key block ordering.
Definition KeyInfo.h:74
size_t numCols() const
Return the total scalar dimension.
Definition KeyInfo.h:71
VectorValues represents a collection of vector-valued variables associated each with a unique integer...
Definition VectorValues.h:73
The Factor::error simply extracts the.