26 class EliminationTreeTester;
50 template<
class BAYESNET,
class GRAPH>
64 typedef typename GRAPH::Eliminate Eliminate;
74 sharedFactor eliminate(
const std::shared_ptr<BayesNetType>& output,
77 void print(
const std::string& str,
const KeyFormatter& keyFormatter)
const;
84 GTSAM_CONCEPT_TESTABLE_TYPE(FactorType)
130 std::pair<std::shared_ptr<BayesNetType>, std::shared_ptr<FactorGraphType> >
131 eliminate(Eliminate
function)
const;
138 void print(
const std::string& name =
"EliminationTree: ",
139 const KeyFormatter& formatter = DefaultKeyFormatter)
const;
143 bool equals(
const This& other,
double tol = 1e-9)
const;
158 void swap(This& other);
166 friend class ::EliminationTreeTester;
FastVector< sharedNode > roots_
Definition: EliminationTree.h:86
Factors factors
factors associated with root
Definition: EliminationTree.h:71
bool equals(const This &other, double tol=1e-9) const
Definition: EliminationTree-inst.h:251
const FastVector< sharedNode > & roots() const
Definition: EliminationTree.h:152
Definition: EliminationTree.h:51
Concept check for values that can be used in unit tests.
GRAPH FactorGraphType
The factor graph type.
Definition: EliminationTree.h:58
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
Definition: FastVector.h:34
void swap(This &other)
Definition: EliminationTree-inst.h:320
Definition: Ordering.h:37
Children children
sub-trees
Definition: EliminationTree.h:72
Definition: EliminationTree.h:66
EliminationTree()
Protected default constructor.
Definition: EliminationTree.h:162
Definition: GaussianConditional.h:38
BayesNetType::ConditionalType ConditionalType
The type of conditionals.
Definition: EliminationTree.h:62
EliminationTree< BAYESNET, GRAPH > This
This class.
Definition: EliminationTree.h:54
std::shared_ptr< ConditionalType > sharedConditional
Shared pointer to a conditional.
Definition: EliminationTree.h:63
Key key
key associated with root
Definition: EliminationTree.h:70
const FastVector< sharedFactor > & remainingFactors() const
Definition: EliminationTree.h:155
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: Key.h:35
A thin wrapper around std::vector that uses a custom allocator.
Definition: chartTesting.h:28
~EliminationTree()
Definition: EliminationTree-inst.h:192
Definition: VariableIndex.h:41
BAYESNET BayesNetType
The BayesNet corresponding to FACTOR.
Definition: EliminationTree.h:61
This & operator=(const This &other)
Definition: EliminationTree-inst.h:172
std::shared_ptr< This > shared_ptr
Shared pointer to this class.
Definition: EliminationTree.h:55
GRAPH::FactorType FactorType
The type of factors.
Definition: EliminationTree.h:59
std::shared_ptr< FactorType > sharedFactor
Shared pointer to a factor.
Definition: EliminationTree.h:60
std::shared_ptr< Node > sharedNode
Shared pointer to Node.
Definition: EliminationTree.h:80
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:102