fix OrderingType declaration
parent
5051f19f30
commit
57d7103a47
|
@ -81,13 +81,14 @@ Marginals::Marginals(const GaussianFactorGraph& graph, const VectorValues& solut
|
|||
/* ************************************************************************* */
|
||||
void Marginals::computeBayesTree() {
|
||||
// The default ordering to use.
|
||||
const Ordering ordering = Ordering::COLAMND;
|
||||
const Ordering::OrderingType defaultOrderingType = Ordering::COLAMD;
|
||||
// Compute BayesTree
|
||||
if (factorization_ == CHOLESKY)
|
||||
bayesTree_ =
|
||||
*graph_.eliminateMultifrontal(ordering, EliminatePreferCholesky);
|
||||
bayesTree_ = *graph_.eliminateMultifrontal(defaultOrderingType,
|
||||
EliminatePreferCholesky);
|
||||
else if (factorization_ == QR)
|
||||
bayesTree_ = *graph_.eliminateMultifrontal(ordering, EliminateQR);
|
||||
bayesTree_ =
|
||||
*graph_.eliminateMultifrontal(defaultOrderingType, EliminateQR);
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
|
|
Loading…
Reference in New Issue