Go to the documentation of this file.
47 template <
typename ITERATOR>
49 :
Base(firstConditional, lastConditional) {}
52 template <
class CONTAINER>
59 template <
class DERIVEDCONDITIONAL>
72 emplace_shared<SymbolicConditional>(
c);
82 emplace_shared<SymbolicConditional>(
c);
96 const std::string&
s =
"SymbolicBayesNet",
104 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
106 friend class boost::serialization::access;
107 template<
class ARCHIVE>
108 void serialize(ARCHIVE & ar,
const unsigned int ) {
109 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
SymbolicBayesNet(const CONTAINER &conditionals)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
void print(const std::string &s="BayesNet", const KeyFormatter &formatter=DefaultKeyFormatter) const override
Typedefs for easier changing of types.
const KeyFormatter & formatter
SymbolicBayesNet(std::initializer_list< std::shared_ptr< SymbolicConditional >> conditionals)
GTSAM_EXPORT bool equals(const This &bn, double tol=1e-9) const
SymbolicBayesNet(const FactorGraph< DERIVEDCONDITIONAL > &graph)
const std::vector< GaussianConditional::shared_ptr > conditionals
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
std::shared_ptr< ConditionalType > sharedConditional
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
SymbolicConditional ConditionalType
GTSAM_EXPORT void print(const std::string &s="SymbolicBayesNet", const KeyFormatter &formatter=DefaultKeyFormatter) const override
print
BayesNet< SymbolicConditional > Base
SymbolicBayesNet(SymbolicConditional &&c)
Construct from a single conditional.
std::shared_ptr< This > shared_ptr
IsDerived< DERIVEDFACTOR > push_back(std::shared_ptr< DERIVEDFACTOR > factor)
Add a factor directly using a shared_ptr.
SymbolicBayesNet & operator()(SymbolicConditional &&c)
Add a single conditional and return a reference. This allows for chaining, e.g., SymbolicBayesNet bn ...
SymbolicBayesNet(ITERATOR firstConditional, ITERATOR lastConditional)
NonlinearFactorGraph graph
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:05:21