Eliminated linked list
parent
6727ae9ae5
commit
f9ddbb1345
|
@ -43,7 +43,7 @@ class GTSAM_EXPORT VariableIndex {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef boost::shared_ptr<VariableIndex> shared_ptr;
|
typedef boost::shared_ptr<VariableIndex> shared_ptr;
|
||||||
typedef FastList<size_t> Factors;
|
typedef FastVector<size_t> Factors;
|
||||||
typedef Factors::iterator Factor_iterator;
|
typedef Factors::iterator Factor_iterator;
|
||||||
typedef Factors::const_iterator Factor_const_iterator;
|
typedef Factors::const_iterator Factor_const_iterator;
|
||||||
|
|
||||||
|
|
|
@ -407,7 +407,7 @@ void BatchFixedLagSmoother::marginalize(const std::set<Key>& marginalizeKeys) {
|
||||||
std::set<size_t> removedFactorSlots;
|
std::set<size_t> removedFactorSlots;
|
||||||
VariableIndex variableIndex(factors_);
|
VariableIndex variableIndex(factors_);
|
||||||
BOOST_FOREACH(Key key, marginalizeKeys) {
|
BOOST_FOREACH(Key key, marginalizeKeys) {
|
||||||
const FastList<size_t>& slots = variableIndex[key];
|
const FastVector<size_t>& slots = variableIndex[key];
|
||||||
removedFactorSlots.insert(slots.begin(), slots.end());
|
removedFactorSlots.insert(slots.begin(), slots.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -536,7 +536,7 @@ void ConcurrentBatchFilter::moveSeparator(const FastList<Key>& keysToMove) {
|
||||||
std::vector<size_t> removedFactorSlots;
|
std::vector<size_t> removedFactorSlots;
|
||||||
VariableIndex variableIndex(factors_);
|
VariableIndex variableIndex(factors_);
|
||||||
BOOST_FOREACH(Key key, keysToMove) {
|
BOOST_FOREACH(Key key, keysToMove) {
|
||||||
const FastList<size_t>& slots = variableIndex[key];
|
const FastVector<size_t>& slots = variableIndex[key];
|
||||||
removedFactorSlots.insert(removedFactorSlots.end(), slots.begin(), slots.end());
|
removedFactorSlots.insert(removedFactorSlots.end(), slots.begin(), slots.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -291,7 +291,7 @@ std::vector<size_t> ConcurrentIncrementalFilter::FindAdjacentFactors(const ISAM2
|
||||||
std::vector<size_t> removedFactorSlots;
|
std::vector<size_t> removedFactorSlots;
|
||||||
const VariableIndex& variableIndex = isam2.getVariableIndex();
|
const VariableIndex& variableIndex = isam2.getVariableIndex();
|
||||||
BOOST_FOREACH(Key key, keys) {
|
BOOST_FOREACH(Key key, keys) {
|
||||||
const FastList<size_t>& slots = variableIndex[key];
|
const FastVector<size_t>& slots = variableIndex[key];
|
||||||
removedFactorSlots.insert(removedFactorSlots.end(), slots.begin(), slots.end());
|
removedFactorSlots.insert(removedFactorSlots.end(), slots.begin(), slots.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue