From 00ff066b33a38a044e9c1bbcbb24958cf657c5c3 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Wed, 11 Nov 2009 05:13:25 +0000 Subject: [PATCH] Fixed compile error --- cpp/timeLinearFactorGraph.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpp/timeLinearFactorGraph.cpp b/cpp/timeLinearFactorGraph.cpp index 19e54fe3e..5adff71da 100644 --- a/cpp/timeLinearFactorGraph.cpp +++ b/cpp/timeLinearFactorGraph.cpp @@ -7,6 +7,7 @@ #include #include #include "SmallExample.h" +#include "Ordering.h" using namespace std; using namespace gtsam; @@ -27,8 +28,9 @@ double timeKalmanSmoother(int T) { /* ************************************************************************* */ TEST(timeLinearFactorGraph, linearTime) { - double time1 = timeKalmanSmoother(1000); cout << time1 << endl; - double time2 = timeKalmanSmoother(2000); cout << time2 << endl; + int T = 1000; + double time1 = timeKalmanSmoother( T); // cout << time1 << endl; + double time2 = timeKalmanSmoother(2*T); // cout << time2 << endl; DOUBLES_EQUAL(2*time1,time2,0.001); }