From bc3398a6a2dce1b0363ba1081880da478ec05d18 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 24 Jan 2016 14:09:16 -0500 Subject: [PATCH] [BUGFIX] Fixed Failing Unit Test --- gtsam_unstable/linear/tests/testLPSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam_unstable/linear/tests/testLPSolver.cpp b/gtsam_unstable/linear/tests/testLPSolver.cpp index 7045040fe..6d64c6314 100644 --- a/gtsam_unstable/linear/tests/testLPSolver.cpp +++ b/gtsam_unstable/linear/tests/testLPSolver.cpp @@ -341,7 +341,7 @@ public: if (Aterms.size() > 0) { Vector b = zero(delta.at(key).size()); Factor::const_iterator it = lp_.cost.find(key); - if (it != lp_.cost.end()) b = lp_.cost.getA(it); + if (it != lp_.cost.end()) b = lp_.cost.getA(it).transpose(); return boost::make_shared(Aterms, b); // compute the least-square approximation of dual variables } else {