fixed a bug in colamdOrdering
parent
0b11a02183
commit
7a59d3cfe0
|
@ -80,6 +80,8 @@ void NonlinearFactorGraph<VALUES>::print(const std::string& str) const {
|
|||
|
||||
// Compute the VariableIndex (column-wise index)
|
||||
VariableIndex variableIndex(*symbolic);
|
||||
if(config.size() != variableIndex.size())
|
||||
throw std::runtime_error("orderingCOLAMD: some variables in the graph are not constrained!");
|
||||
|
||||
// Compute a fill-reducing ordering with COLAMD
|
||||
Permutation::shared_ptr colamdPerm(Inference::PermutationCOLAMD(variableIndex));
|
||||
|
|
Loading…
Reference in New Issue