Go to the documentation of this file.
57 void print(
const std::string&
s =
"",
121 if (
auto it = this->find(
key); it != this->
end())
122 result[
key] = it->second;
135 for (
const auto& [
key, cardinality] :
keys) {
136 if (!this->contains(
key))
result.emplace_back(
key, cardinality);
150 return Base::CartesianProduct<DiscreteValues>(
keys);
158 using Names = std::map<Key, std::vector<std::string>>;
181 const Names&
names = {})
const;
197 std::string GTSAM_EXPORT
203 std::string GTSAM_EXPORT
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.)
std::ostream & operator<<(std::ostream &os, const Dih6 &m)
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.
ofstream os("timeSchurFactors.csv")
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.
DiscreteValues filter(const DiscreteKeys &keys) const
Filter values by keys.
An assignment from labels to a discrete value index (size_t)
specialized key for discrete variables
const gtsam::Symbol key('X', 0)
DiscreteKeys missingKeys(const DiscreteKeys &keys) const
Return the keys that are not present in the DiscreteValues object.
bool contains(Key key) const
Check if the DiscreteValues contains the given key.
std::pair< iterator, bool > insert(const value_type &value)
void PrintDiscreteValues(const DiscreteValues &values, const std::string &s, const KeyFormatter &keyFormatter)
Free version of print for wrapper.
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.
static const EIGEN_DEPRECATED end_t end
std::vector< DiscreteValues > cartesianProduct(const DiscreteKeys &keys)
Free version of CartesianProduct.
std::uint64_t Key
Integer nonlinear key type.
constexpr descr< N - 1 > _(char const (&text)[N])
gtsam
Author(s):
autogenerated on Thu Apr 10 2025 03:01:23