Go to the documentation of this file.
22 #include <gtsam_unstable/dllexport.h>
50 template <
class KeyIterator>
74 virtual bool ensureArcConsistency(
Key j,
Domains* domains)
const = 0;
77 virtual shared_ptr partiallyApply(
const DiscreteValues&)
const = 0;
80 virtual shared_ptr partiallyApply(
const Domains&)
const = 0;
88 return "`Constraint` on " + std::to_string(
size()) +
" variables\n";
94 return "<p>Constraint on " + std::to_string(
size()) +
" variables</p>";
Constraint(KeyIterator beginKey, KeyIterator endKey)
construct from container
std::string markdown(const KeyFormatter &keyFormatter=DefaultKeyFormatter, const Names &names={}) const override
Render as markdown table.
std::string html(const KeyFormatter &keyFormatter=DefaultKeyFormatter, const Names &names={}) const override
Render as html table.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Constraint(const KeyVector &js)
Construct n-way constraint factor.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
std::map< Key, Domain > Domains
DiscreteValues::Names Names
Translation table from values to strings.
Constraint(Key j1, Key j2)
Construct binary constraint factor.
std::shared_ptr< Constraint > shared_ptr
std::uint64_t Key
Integer nonlinear key type.
~Constraint() override
Virtual destructor.
Constraint(Key j)
Construct unary constraint factor.
gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:32:11