20 #include <boost/format.hpp> 28 for (
size_t i = 0;
i < cs.size();
i++) {
37 js.push_back(key.first);
43 cs.insert(begin(),
end());
DiscreteKeys()
Default constructor.
GTSAM_EXPORT KeyVector indices() const
Return a vector of indices.
const Symbol key1('v', 1)
DiscreteKeys operator&(const DiscreteKey &key1, const DiscreteKey &key2)
Create a list from two keys.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
std::pair< Key, size_t > DiscreteKey
GTSAM_EXPORT std::map< Key, size_t > cardinalities() const
Return a map from index to cardinality.
specialized key for discrete variables
const Symbol key2('v', 2)
Annotation for function names.
DiscreteKeys is a set of keys that can be assembled using the & operator.