104 void print(
const std::string& str =
"Marginals: ",
const KeyFormatter& keyFormatter = DefaultKeyFormatter)
const;
111 Matrix marginalInformation(
Key variable)
const;
114 Matrix marginalCovariance(
Key variable)
const;
128 void computeBayesTree();
131 void computeBayesTree(
const Ordering& ordering);
162 const auto indexI = indices_.at(iVariable);
163 const auto indexJ = indices_.at(jVariable);
164 return blockMatrix_.
block(indexI, indexJ);
169 return (*
this)(iVariable, jVariable);
178 void print(
const std::string& s =
"",
const KeyFormatter& formatter = DefaultKeyFormatter)
const;
182 blockMatrix_(dims, fullMatrix), keys_(keys), indices_(
Ordering(keys).invert()) {}
Definition: Marginals.h:137
Matrix at(Key iVariable, Key jVariable) const
Definition: Marginals.h:168
Definition: GaussianBayesTree.h:49
A non-templated config holding any types of Manifold-group elements.
Factor Graph consisting of non-linear factors.
Factorization
Definition: Marginals.h:37
Definition: Ordering.h:37
Definition: Marginals.h:32
Definition: VectorValues.h:74
Matrix fullMatrix() const
Definition: Marginals.h:173
Definition: SymmetricBlockMatrix.h:53
Eigen::SelfAdjointView< constBlock, Eigen::Upper > selfadjointView(DenseIndex I, DenseIndex J) const
Return the square sub-matrix that contains blocks(i:j, i:j).
Definition: SymmetricBlockMatrix.h:158
GTSAM_EXPORT Point3 optimize(const NonlinearFactorGraph &graph, const Values &values, Key landmarkKey)
Marginals()
Default constructor only for wrappers.
Definition: Marginals.h:52
GTSAM_EXPORT void print(const Matrix &A, const std::string &s, std::ostream &stream)
Matrix operator()(Key iVariable, Key jVariable) const
Definition: Marginals.h:161
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: Key.h:35
JointMarginal()
Default constructor only for wrappers.
Definition: Marginals.h:146
Definition: NonlinearFactorGraph.h:55
std::shared_ptr< This > shared_ptr
shared_ptr to this class
Definition: GaussianFactor.h:42
Definition: chartTesting.h:28
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition: Key.h:86
Gaussian Bayes Tree, the result of eliminating a GaussianJunctionTree.
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:102
Matrix block(DenseIndex I, DenseIndex J) const
Definition: GaussianFactorGraph.h:73