cleanup
parent
7e956d2bb7
commit
0076db7e20
|
@ -33,16 +33,13 @@ namespace gtsam {
|
||||||
|
|
||||||
KeyVector DiscreteKeys::indices() const {
|
KeyVector DiscreteKeys::indices() const {
|
||||||
KeyVector js;
|
KeyVector js;
|
||||||
for(const DiscreteKey& key: *this)
|
for (const DiscreteKey& key : *this) js.push_back(key.first);
|
||||||
js.push_back(key.first);
|
|
||||||
return js;
|
return js;
|
||||||
}
|
}
|
||||||
|
|
||||||
map<Key,size_t> DiscreteKeys::cardinalities() const {
|
map<Key, size_t> DiscreteKeys::cardinalities() const {
|
||||||
map<Key,size_t> cs;
|
map<Key, size_t> cs;
|
||||||
cs.insert(begin(),end());
|
cs.insert(begin(), end());
|
||||||
// for(const DiscreteKey& key: *this)
|
|
||||||
// cs.insert(key);
|
|
||||||
return cs;
|
return cs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue