Switched to parallel elimination
parent
0847cbe3d8
commit
db8fcfaa4f
|
@ -234,7 +234,7 @@ namespace gtsam {
|
||||||
// that contains all of the roots as its children. rootsContainer also stores the remaining
|
// that contains all of the roots as its children. rootsContainer also stores the remaining
|
||||||
// uneliminated factors passed up from the roots.
|
// uneliminated factors passed up from the roots.
|
||||||
EliminationData<This> rootsContainer(0, roots_.size());
|
EliminationData<This> rootsContainer(0, roots_.size());
|
||||||
treeTraversal::DepthFirstForest(*this, rootsContainer, eliminationPreOrderVisitor<This>,
|
treeTraversal::DepthFirstForestParallel(*this, rootsContainer, eliminationPreOrderVisitor<This>,
|
||||||
boost::bind(eliminationPostOrderVisitor<This>, _1, _2, function));
|
boost::bind(eliminationPostOrderVisitor<This>, _1, _2, function));
|
||||||
|
|
||||||
// Create BayesTree from roots stored in the dummy BayesTree node.
|
// Create BayesTree from roots stored in the dummy BayesTree node.
|
||||||
|
|
Loading…
Reference in New Issue