fixed a bug in colamdOrdering

release/4.3a0
Kai Ni 2010-12-10 09:19:06 +00:00
parent 7a59d3cfe0
commit 3a09395a01
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ void NonlinearFactorGraph<VALUES>::print(const std::string& str) const {
boost::tie(symbolic,ordering) = this->symbolic(config);
// Compute the VariableIndex (column-wise index)
VariableIndex variableIndex(*symbolic);
VariableIndex variableIndex(*symbolic, ordering->size());
if(config.size() != variableIndex.size())
throw std::runtime_error("orderingCOLAMD: some variables in the graph are not constrained!");