From adb3feeb1e024ba6bbb7dfb62fa723681f463b3d Mon Sep 17 00:00:00 2001 From: = Date: Wed, 29 Jun 2016 15:10:36 -0400 Subject: [PATCH] Forgot to add as a vector instead of a double. --- gtsam_unstable/linear/tests/testQPSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam_unstable/linear/tests/testQPSolver.cpp b/gtsam_unstable/linear/tests/testQPSolver.cpp index 1851c01bf..b8437da7b 100644 --- a/gtsam_unstable/linear/tests/testQPSolver.cpp +++ b/gtsam_unstable/linear/tests/testQPSolver.cpp @@ -287,7 +287,7 @@ TEST(QPSolver, HS118) { VectorValues expectedSolution; double solutionValues[15] = {8,49,3,1,56,0,1,63,6,3,70,12,5,77,18}; for (int index = 0; index < 15; ++index) { - expectedSolution.insert(Symbol('X',index+1), solutionValues[index]); + expectedSolution.insert(Symbol('X',index+1), solutionValues[index]*I_1x1); } boost::tie(actualSolution, boost::tuples::ignore) = QPSolver(problem).optimize(); double error_actual = problem.cost.error(actualSolution);