48 #ifdef USE_BROKEN_FAST_BACKSUBSTITUTE 59 cachedFactor_(other.cachedFactor_),
60 gradientContribution_(other.gradientContribution_) {}
65 Base::operator=(other);
72 void setEliminationResult(
87 void print(
const std::string&
s =
"",
94 bool optimizeWildfireNode(
const KeySet& replaced,
double threshold,
102 void nnz_internal(
size_t*
result)
const;
103 size_t calculate_nnz()
const;
127 bool isDirty(
const KeySet& replaced,
const KeySet& changed)
const;
139 bool valuesChanged(
const KeySet& replaced,
const Vector& originalValues,
143 void markFrontalsAsChanged(
KeySet* changed)
const;
146 void restoreFromOriginals(
const Vector& originalValues,
149 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 151 friend class boost::serialization::access;
152 template <
class ARCHIVE>
153 void serialize(ARCHIVE& ar,
const unsigned int ) {
154 ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
155 ar& BOOST_SERIALIZATION_NVP(cachedFactor_);
156 ar& BOOST_SERIALIZATION_NVP(gradientContribution_);
176 double threshold,
const KeySet& replaced,
void print(const Matrix &A, const string &s, ostream &stream)
std::shared_ptr< This > shared_ptr
shared_ptr to this class
std::string serialize(const T &input)
serializes to a string
static const KeyFormatter DefaultKeyFormatter
void g(const string &key, int i)
const KeyFormatter & formatter
size_t optimizeWildfire(const ISAM2Clique::shared_ptr &root, double threshold, const KeySet &keys, VectorValues *delta)
std::shared_ptr< This > shared_ptr
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.
std::pair< std::shared_ptr< ConditionalType >, std::shared_ptr< _FactorType > > EliminationResult
Vector gradientContribution_
std::shared_ptr< This > shared_ptr
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.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Base::FactorType::shared_ptr & cachedFactor()
std::weak_ptr< This > weak_ptr
BayesTreeCliqueBase< This, GaussianFactorGraph > Base
Chordal Bayes Net, the result of eliminating a factor graph.
ISAM2Clique & operator=(const ISAM2Clique &other)
ConditionalType::shared_ptr sharedConditional
Base class for cliques of a BayesTree.
const Vector & gradientContribution() const
Access the gradient contribution.