Fix remaining FastVector errors for gcc + tbb + Ubuntu in tests
parent
79fe89eaa9
commit
895da61f05
|
|
@ -40,8 +40,8 @@ struct TestNode {
|
|||
struct TestForest {
|
||||
typedef TestNode Node;
|
||||
typedef Node::shared_ptr sharedNode;
|
||||
vector<sharedNode> roots_;
|
||||
const vector<sharedNode>& roots() const { return roots_; }
|
||||
FastVector<sharedNode> roots_;
|
||||
const FastVector<sharedNode>& roots() const { return roots_; }
|
||||
};
|
||||
|
||||
TestForest makeTestForest() {
|
||||
|
|
|
|||
|
|
@ -1110,12 +1110,13 @@ TEST( ConcurrentIncrementalFilter, CalculateMarginals_1 )
|
|||
// Create the set of marginalizable variables
|
||||
GaussianFactorGraph linearGraph = *factorGraph.linearize(newValues);
|
||||
|
||||
GaussianFactorGraph marginal = *linearGraph.eliminatePartialMultifrontal({1}, EliminateCholesky).second;
|
||||
KeyVector linearIndices {1};
|
||||
GaussianFactorGraph marginal = *linearGraph.eliminatePartialMultifrontal(linearIndices, EliminateCholesky).second;
|
||||
|
||||
NonlinearFactorGraph expectedMarginals;
|
||||
for(const GaussianFactor::shared_ptr& factor: marginal) {
|
||||
expectedMarginals.push_back(LinearContainerFactor(factor, newValues));
|
||||
}
|
||||
NonlinearFactorGraph expectedMarginals;
|
||||
for(const GaussianFactor::shared_ptr& factor: marginal) {
|
||||
expectedMarginals.push_back(LinearContainerFactor(factor, newValues));
|
||||
}
|
||||
|
||||
FastList<Key> keysToMarginalize;
|
||||
keysToMarginalize.push_back(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue