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