Go to the documentation of this file.
57 void print(
const std::string&
s =
"",
87 return Base::CartesianProduct<DiscreteValues>(
keys);
95 using Names = std::map<Key, std::vector<std::string>>;
118 const Names&
names = {})
const;
string markdown(const DiscreteValues &values, const KeyFormatter &keyFormatter, const DiscreteValues::Names &names)
Free version of markdown.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
DiscreteKeys is a set of keys that can be assembled using the & operator.
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
DiscreteValues(const Base &a)
void print(const Matrix &A, const string &s, ostream &stream)
static std::vector< DiscreteValues > CartesianProduct(const DiscreteKeys &keys)
Return a vector of DiscreteValues, one for each possible combination of values.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
An assignment from labels to a discrete value index (size_t)
specialized key for discrete variables
const gtsam::Symbol key('X', 0)
std::pair< iterator, bool > insert(const value_type &value)
DiscreteValues(std::initializer_list< std::pair< const Key, size_t >> init)
string html(const DiscreteValues &values, const KeyFormatter &keyFormatter, const DiscreteValues::Names &names)
Free version of html.
std::map< Key, std::vector< std::string > > Names
Translation table from values to strings.
std::vector< DiscreteValues > cartesianProduct(const DiscreteKeys &keys)
Free version of CartesianProduct.
std::uint64_t Key
Integer nonlinear key type.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:13