From 0311d2a2a2309e7aff8745e595e7986abff1395c Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Tue, 19 Jan 2010 02:57:08 +0000 Subject: [PATCH] Very very small change :-) --- cpp/FactorGraph-inl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/FactorGraph-inl.h b/cpp/FactorGraph-inl.h index ae1af2d85..3cf6e7196 100644 --- a/cpp/FactorGraph-inl.h +++ b/cpp/FactorGraph-inl.h @@ -186,7 +186,8 @@ boost::shared_ptr colamd(int n_col, int n_row, int nrNonZeros, const m // Convert elimination ordering in p to an ordering boost::shared_ptr result(new Ordering); for(int j = 0; j < n_col; j++) - result->push_back(initialOrder[j]); + result->push_back(initialOrder[p[j]]); + //result->push_back(initialOrder[j]); delete [] p; // delete colamd result vector return result;