gtsam 4.1.1
gtsam
gtsam::SymbolicEliminationTree Class Reference
+ Inheritance diagram for gtsam::SymbolicEliminationTree:

Public Member Functions

 SymbolicEliminationTree (const SymbolicFactorGraph &factorGraph, const VariableIndex &structure, const Ordering &order)
 Build the elimination tree of a factor graph using pre-computed column structure. More...
 
 SymbolicEliminationTree (const SymbolicFactorGraph &factorGraph, const Ordering &order)
 Build the elimination tree of a factor graph. More...
 
bool equals (const This &other, double tol=1e-9) const
 Test whether the tree is equal to another.
 
- Public Member Functions inherited from gtsam::EliminationTree< SymbolicBayesNet, SymbolicFactorGraph >
std::pair< boost::shared_ptr< BayesNetType >, boost::shared_ptr< FactorGraphType > > eliminate (Eliminate function) const
 Eliminate the factors to a Bayes net and remaining factor graph. More...
 
const FastVector< sharedNode > & roots () const
 Return the set of roots (one for a tree, multiple for a forest)
 
const FastVector< sharedFactor > & remainingFactors () const
 Return the remaining factors that are not pulled into elimination.
 
void swap (This &other)
 Swap the data of this tree with another one, this operation is very fast.
 
void print (const std::string &name="EliminationTree: ", const KeyFormatter &formatter=DefaultKeyFormatter) const
 Print the tree to cout.
 

Public Types

typedef EliminationTree< SymbolicBayesNet, SymbolicFactorGraphBase
 Base class.
 
typedef SymbolicEliminationTree This
 This class.
 
typedef boost::shared_ptr< Thisshared_ptr
 Shared pointer to this class.
 
- Public Types inherited from gtsam::EliminationTree< SymbolicBayesNet, SymbolicFactorGraph >
typedef SymbolicFactorGraph FactorGraphType
 The factor graph type.
 
typedef GRAPH::FactorType FactorType
 The type of factors.
 
typedef boost::shared_ptr< FactorTypesharedFactor
 Shared pointer to a factor.
 
typedef SymbolicBayesNet BayesNetType
 The BayesNet corresponding to FACTOR.
 
typedef BayesNetType::ConditionalType ConditionalType
 The type of conditionals.
 
typedef boost::shared_ptr< ConditionalTypesharedConditional
 Shared pointer to a conditional.
 
typedef GRAPH::Eliminate Eliminate
 
typedef boost::shared_ptr< Node > sharedNode
 Shared pointer to Node.
 

Friends

class ::EliminationTreeTester
 

Additional Inherited Members

- Protected Types inherited from gtsam::EliminationTree< SymbolicBayesNet, SymbolicFactorGraph >
typedef EliminationTree< SymbolicBayesNet, SymbolicFactorGraphThis
 This class.
 
typedef boost::shared_ptr< Thisshared_ptr
 Shared pointer to this class.
 
- Protected Member Functions inherited from gtsam::EliminationTree< SymbolicBayesNet, SymbolicFactorGraph >
 EliminationTree (const FactorGraphType &factorGraph, const VariableIndex &structure, const Ordering &order)
 Build the elimination tree of a factor graph using pre-computed column structure. More...
 
 EliminationTree (const FactorGraphType &factorGraph, const Ordering &order)
 Build the elimination tree of a factor graph. More...
 
 EliminationTree (const This &other)
 Copy constructor - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned.
 
Thisoperator= (const This &other)
 Assignment operator - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned.
 
 EliminationTree ()
 Protected default constructor.
 
bool equals (const This &other, double tol=1e-9) const
 Test whether the tree is equal to another.
 
- Protected Attributes inherited from gtsam::EliminationTree< SymbolicBayesNet, SymbolicFactorGraph >
FastVector< sharedNoderoots_
 concept check
 
FastVector< sharedFactorremainingFactors_
 

Constructor & Destructor Documentation

◆ SymbolicEliminationTree() [1/2]

gtsam::SymbolicEliminationTree::SymbolicEliminationTree ( const SymbolicFactorGraph factorGraph,
const VariableIndex structure,
const Ordering order 
)

Build the elimination tree of a factor graph using pre-computed column structure.

Parameters
factorGraphThe factor graph for which to build the elimination tree
structureThe set of factors involving each variable. If this is not precomputed, you can call the Create(const FactorGraph<DERIVEDFACTOR>&) named constructor instead.
Returns
The elimination tree

◆ SymbolicEliminationTree() [2/2]

gtsam::SymbolicEliminationTree::SymbolicEliminationTree ( const SymbolicFactorGraph factorGraph,
const Ordering order 
)

Build the elimination tree of a factor graph.

Note that this has to compute the column structure as a VariableIndex, so if you already have this precomputed, use the other constructor instead.

Parameters
factorGraphThe factor graph for which to build the elimination tree

The documentation for this class was generated from the following files: