Go to the documentation of this file.
50 template<
class BAYESNET,
class GRAPH>
130 std::pair<std::shared_ptr<BayesNetType>, std::shared_ptr<FactorGraphType> >
138 void print(
const std::string&
name =
"EliminationTree: ",
166 friend class ::EliminationTreeTester;
Factors factors
factors associated with root
FastVector< std::shared_ptr< Node > > Children
FastVector< sharedFactor > Factors
Annotation for function names.
FastVector< sharedNode > roots_
EliminationTree< BAYESNET, GRAPH > This
This class.
GRAPH::Eliminate Eliminate
A thin wrapper around std::vector that uses a custom allocator.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
FastVector< sharedFactor > remainingFactors_
Concept check for values that can be used in unit tests.
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
std::shared_ptr< ConditionalType > sharedConditional
Shared pointer to a conditional.
void print(const std::string &name="EliminationTree: ", const KeyFormatter &formatter=DefaultKeyFormatter) const
const KeyFormatter & formatter
BayesNetType::ConditionalType ConditionalType
The type of conditionals.
BAYESNET BayesNetType
The BayesNet corresponding to FACTOR.
Children children
sub-trees
sharedFactor eliminate(const std::shared_ptr< BayesNetType > &output, const Eliminate &function, const FastVector< sharedFactor > &childrenFactors) const
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
const FastVector< sharedNode > & roots() const
std::shared_ptr< This > shared_ptr
Shared pointer to this class.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Key key
key associated with root
EliminationTree()
Protected default constructor.
std::pair< std::shared_ptr< BayesNetType >, std::shared_ptr< FactorGraphType > > eliminate(Eliminate function) const
GRAPH::FactorType FactorType
The type of factors.
std::shared_ptr< Node > sharedNode
Shared pointer to Node.
GRAPH FactorGraphType
The factor graph type.
void print(const std::string &str, const KeyFormatter &keyFormatter) const
#define GTSAM_CONCEPT_TESTABLE_TYPE(T)
This & operator=(const This &other)
std::shared_ptr< FactorType > sharedFactor
Shared pointer to a factor.
std::uint64_t Key
Integer nonlinear key type.
bool equals(const This &other, double tol=1e-9) const
const FastVector< sharedFactor > & remainingFactors() const
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:15