48 #ifdef USE_BROKEN_FAST_BACKSUBSTITUTE 60 cachedFactor_(other.cachedFactor_),
61 gradientContribution_(other.gradientContribution_) {}
66 Base::operator=(other);
73 void setEliminationResult(
85 bool equals(
const This& other,
double tol = 1
e-9)
const;
88 void print(
const std::string&
s =
"",
95 bool optimizeWildfireNode(
const KeySet& replaced,
double threshold,
103 void nnz_internal(
size_t*
result)
const;
104 size_t calculate_nnz()
const;
128 bool isDirty(
const KeySet& replaced,
const KeySet& changed)
const;
140 bool valuesChanged(
const KeySet& replaced,
const Vector& originalValues,
144 void markFrontalsAsChanged(
KeySet* changed)
const;
147 void restoreFromOriginals(
const Vector& originalValues,
151 friend class boost::serialization::access;
152 template <
class ARCHIVE>
154 ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
155 ar& BOOST_SERIALIZATION_NVP(cachedFactor_);
156 ar& BOOST_SERIALIZATION_NVP(gradientContribution_);
175 double threshold,
const KeySet& replaced,
void print(const Matrix &A, const string &s, ostream &stream)
boost::shared_ptr< This > shared_ptr
void serialize(ARCHIVE &ar, const unsigned int)
const mpreal root(const mpreal &x, unsigned long int k, mp_rnd_t r=mpreal::get_default_rnd())
static const KeyFormatter DefaultKeyFormatter
void g(const string &key, int i)
boost::shared_ptr< This > shared_ptr
const KeyFormatter & formatter
size_t optimizeWildfire(const ISAM2Clique::shared_ptr &root, double threshold, const KeySet &keys, VectorValues *delta)
Base::FactorType::shared_ptr cachedFactor_
size_t optimizeWildfireNonRecursive(const ISAM2Clique::shared_ptr &root, double threshold, const KeySet &keys, VectorValues *delta)
GaussianConditional ConditionalType
ISAM2Clique()
Default constructor.
Vector gradientContribution_
boost::weak_ptr< This > weak_ptr
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
ISAM2Clique(const ISAM2Clique &other)
Conditional Gaussian Base class.
Linear Factor Graph where all factors are Gaussians.
Base::FactorType::shared_ptr & cachedFactor()
const Vector & gradientContribution() const
Access the gradient contribution.
BayesTreeCliqueBase< This, GaussianFactorGraph > Base
Chordal Bayes Net, the result of eliminating a factor graph.
ISAM2Clique & operator=(const ISAM2Clique &other)
ConditionalType::shared_ptr sharedConditional
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
std::pair< boost::shared_ptr< ConditionalType >, boost::shared_ptr< _FactorType > > EliminationResult
Base class for cliques of a BayesTree.