Converted another loop to use insert like was fixed in the previous commit (wasn't a problem this time but am matching the style to the other file)
parent
3e0904e250
commit
ed8b1eeaa1
|
@ -371,9 +371,7 @@ void BatchFixedLagSmoother::marginalize(const std::set<Key>& marginalizeKeys) {
|
||||||
VariableIndex variableIndex(factors_);
|
VariableIndex variableIndex(factors_);
|
||||||
BOOST_FOREACH(Key key, marginalizeKeys) {
|
BOOST_FOREACH(Key key, marginalizeKeys) {
|
||||||
const FastList<size_t>& slots = variableIndex[key];
|
const FastList<size_t>& slots = variableIndex[key];
|
||||||
BOOST_FOREACH(size_t slot, slots) {
|
removedFactorSlots.insert(slots.begin(), slots.end());
|
||||||
removedFactorSlots.insert(slot);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(debug) {
|
if(debug) {
|
||||||
|
|
Loading…
Reference in New Issue