22 #include <boost/utility.hpp>
38 public Conditional<JacobianFactor, GaussianConditional>
51 const SharedDiagonal& sigmas = SharedDiagonal());
55 Key name1,
const Matrix& S,
const SharedDiagonal& sigmas = SharedDiagonal());
59 Key name1,
const Matrix& S,
Key name2,
const Matrix& T,
60 const SharedDiagonal& sigmas = SharedDiagonal());
65 template<
typename TERMS>
67 size_t nrFrontals,
const Vector& d,
68 const SharedDiagonal& sigmas = SharedDiagonal());
74 template<
typename KEYS>
77 const SharedDiagonal& sigmas = SharedDiagonal());
86 template<
typename ITERATOR>
87 static shared_ptr Combine(ITERATOR firstConditional, ITERATOR lastConditional);
90 void print(
const std::string& =
"GaussianConditional",
91 const KeyFormatter& formatter = DefaultKeyFormatter)
const;
97 constABlock
get_R()
const {
return Ab_.range(0, nrFrontals()); }
100 constABlock
get_S()
const {
return Ab_.range(nrFrontals(), size()); }
106 const constBVector
get_d()
const {
return BaseFactor::getb(); }
136 friend class boost::serialization::access;
137 template<
class Archive>
138 void serialize(Archive & ar,
const unsigned int version) {
139 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
BaseFactor);
TODO: Update comments.
Definition: Conditional.h:40
Conditional Gaussian Base class.
constABlock get_R() const
Return a view of the upper-triangular R block of the conditional.
Definition: GaussianConditional.h:97
void solve(Matrix &A, Matrix &B)
solve AX=B via in-place Lu factorization and backsubstitution After calling, A contains LU...
Definition: Matrix.cpp:283
GaussianConditional()
default constructor needed for serialization
Definition: GaussianConditional.h:47
Definition: VerticalBlockMatrix.h:41
A Gaussian factor in the squared-error form.
Definition: JacobianFactor.h:82
Base class for conditional densities.
Included from all GTSAM files.
const constBVector get_d() const
Get a view of the r.h.s.
Definition: GaussianConditional.h:106
void print(const Matrix &A, const string &s, ostream &stream)
print a matrix
Definition: Matrix.cpp:183
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
Definition: GaussianConditional.h:42
constABlock get_S(const_iterator variable) const
Get a view of the S matrix for the variable pointed to by the given key iterator. ...
Definition: GaussianConditional.h:103
Template to create a binary predicate.
Definition: Testable.h:102
size_t Key
Integer nonlinear key type.
Definition: types.h:59
This class represents a collection of vector-valued variables associated each with a unique integer i...
Definition: VectorValues.h:89
GaussianConditional This
Typedef to this class.
Definition: GaussianConditional.h:41
constABlock get_S() const
Get a view of the parent blocks.
Definition: GaussianConditional.h:100
A conditional Gaussian functions as the node in a Bayes network It has a set of parents y...
Definition: GaussianConditional.h:36
boost::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: types.h:62
FastVector< Key >::const_iterator const_iterator
Const iterator over keys.
Definition: Factor.h:64
JacobianFactor BaseFactor
Typedef to our factor base class.
Definition: GaussianConditional.h:43
Conditional< BaseFactor, This > BaseConditional
Typedef to our conditional base class.
Definition: GaussianConditional.h:44
An abstract virtual base class for JacobianFactor and HessianFactor.
Definition: GaussianFactor.h:35