#include <HybridEliminationTree.h>
Public Types | |
typedef EliminationTree< HybridBayesNet, HybridGaussianFactorGraph > | Base |
Base class. More... | |
typedef std::shared_ptr< This > | shared_ptr |
Shared pointer to this class. More... | |
typedef HybridEliminationTree | This |
This class. More... | |
Public Types inherited from gtsam::EliminationTree< HybridBayesNet, HybridGaussianFactorGraph > | |
typedef HybridBayesNet | BayesNetType |
The BayesNet corresponding to FACTOR. More... | |
typedef BayesNetType::ConditionalType | ConditionalType |
The type of conditionals. More... | |
typedef HybridGaussianFactorGraph ::Eliminate | Eliminate |
typedef HybridGaussianFactorGraph | FactorGraphType |
The factor graph type. More... | |
typedef HybridGaussianFactorGraph ::FactorType | FactorType |
The type of factors. More... | |
typedef std::shared_ptr< ConditionalType > | sharedConditional |
Shared pointer to a conditional. More... | |
typedef std::shared_ptr< FactorType > | sharedFactor |
Shared pointer to a factor. More... | |
typedef std::shared_ptr< Node > | sharedNode |
Shared pointer to Node. More... | |
Public Member Functions | |
bool | equals (const This &other, double tol=1e-9) const |
Constructors | |
HybridEliminationTree (const HybridGaussianFactorGraph &factorGraph, const VariableIndex &structure, const Ordering &order) | |
HybridEliminationTree (const HybridGaussianFactorGraph &factorGraph, const Ordering &order) | |
Public Member Functions inherited from gtsam::EliminationTree< HybridBayesNet, HybridGaussianFactorGraph > | |
~EliminationTree () | |
std::pair< std::shared_ptr< BayesNetType >, std::shared_ptr< FactorGraphType > > | eliminate (Eliminate function) const |
const FastVector< sharedNode > & | roots () const |
const FastVector< sharedFactor > & | remainingFactors () const |
void | swap (This &other) |
void | print (const std::string &name="EliminationTree: ", const KeyFormatter &formatter=DefaultKeyFormatter) const |
Friends | |
class | ::EliminationTreeTester |
Additional Inherited Members | |
Protected Types inherited from gtsam::EliminationTree< HybridBayesNet, HybridGaussianFactorGraph > | |
typedef std::shared_ptr< This > | shared_ptr |
Shared pointer to this class. More... | |
typedef EliminationTree< HybridBayesNet, HybridGaussianFactorGraph > | This |
This class. More... | |
Protected Member Functions inherited from gtsam::EliminationTree< HybridBayesNet, HybridGaussianFactorGraph > | |
EliminationTree (const FactorGraphType &factorGraph, const VariableIndex &structure, const Ordering &order) | |
EliminationTree (const FactorGraphType &factorGraph, const Ordering &order) | |
EliminationTree (const This &other) | |
This & | operator= (const This &other) |
EliminationTree () | |
Protected default constructor. More... | |
bool | equals (const This &other, double tol=1e-9) const |
Protected Attributes inherited from gtsam::EliminationTree< HybridBayesNet, HybridGaussianFactorGraph > | |
FastVector< sharedFactor > | remainingFactors_ |
FastVector< sharedNode > | roots_ |
Elimination Tree type for Hybrid Factor Graphs.
Definition at line 31 of file HybridEliminationTree.h.
typedef EliminationTree<HybridBayesNet, HybridGaussianFactorGraph> gtsam::HybridEliminationTree::Base |
Base class.
Definition at line 38 of file HybridEliminationTree.h.
typedef std::shared_ptr<This> gtsam::HybridEliminationTree::shared_ptr |
Shared pointer to this class.
Definition at line 40 of file HybridEliminationTree.h.
This class.
Definition at line 39 of file HybridEliminationTree.h.
gtsam::HybridEliminationTree::HybridEliminationTree | ( | const HybridGaussianFactorGraph & | 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. |
Definition at line 27 of file HybridEliminationTree.cpp.
gtsam::HybridEliminationTree::HybridEliminationTree | ( | const HybridGaussianFactorGraph & | 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 |
Definition at line 33 of file HybridEliminationTree.cpp.
bool gtsam::HybridEliminationTree::equals | ( | const This & | other, |
double | tol = 1e-9 |
||
) | const |
Test whether the tree is equal to another
Definition at line 38 of file HybridEliminationTree.cpp.
|
friend |
Definition at line 34 of file HybridEliminationTree.h.