gtsam
4.0.0
gtsam
|
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. More... | |
void | print (const std::string &name="EliminationTree: ", const KeyFormatter &formatter=DefaultKeyFormatter) const |
Print the tree to cout. | |
Public Types | |
typedef EliminationTree< SymbolicBayesNet, SymbolicFactorGraph > | Base |
Base class. | |
typedef SymbolicEliminationTree | This |
This class. | |
typedef boost::shared_ptr< This > | shared_ptr |
Shared pointer to this class. | |
Public Types inherited from gtsam::EliminationTree< SymbolicBayesNet, SymbolicFactorGraph > | |
typedef SymbolicFactorGraph | FactorGraphType |
The factor graph type. | |
typedef SymbolicFactorGraph ::FactorType | FactorType |
The type of factors. | |
typedef boost::shared_ptr< FactorType > | sharedFactor |
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< ConditionalType > | sharedConditional |
Shared pointer to a conditional. | |
typedef SymbolicFactorGraph ::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, SymbolicFactorGraph > | This |
This class. | |
typedef boost::shared_ptr< This > | shared_ptr |
Shared pointer to this class. | |
Protected Member Functions inherited from gtsam::EliminationTree< SymbolicBayesNet, SymbolicFactorGraph > | |
GTSAM_CONCEPT_TESTABLE_TYPE (FactorType) | |
concept check | |
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. More... | |
This & | operator= (const This &other) |
Assignment operator - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned. More... | |
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< sharedNode > | roots_ |
FastVector< sharedFactor > | remainingFactors_ |
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.
factorGraph | The factor graph for which to build the elimination tree |
structure | The set of factors involving each variable. If this is not precomputed, you can call the Create(const FactorGraph<DERIVEDFACTOR>&) named constructor instead. |
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.
factorGraph | The factor graph for which to build the elimination tree |