Fixed compile error
parent
8d2d48d252
commit
00ff066b33
|
@ -7,6 +7,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <CppUnitLite/TestHarness.h>
|
#include <CppUnitLite/TestHarness.h>
|
||||||
#include "SmallExample.h"
|
#include "SmallExample.h"
|
||||||
|
#include "Ordering.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace gtsam;
|
using namespace gtsam;
|
||||||
|
@ -27,8 +28,9 @@ double timeKalmanSmoother(int T) {
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
TEST(timeLinearFactorGraph, linearTime)
|
TEST(timeLinearFactorGraph, linearTime)
|
||||||
{
|
{
|
||||||
double time1 = timeKalmanSmoother(1000); cout << time1 << endl;
|
int T = 1000;
|
||||||
double time2 = timeKalmanSmoother(2000); cout << time2 << endl;
|
double time1 = timeKalmanSmoother( T); // cout << time1 << endl;
|
||||||
|
double time2 = timeKalmanSmoother(2*T); // cout << time2 << endl;
|
||||||
DOUBLES_EQUAL(2*time1,time2,0.001);
|
DOUBLES_EQUAL(2*time1,time2,0.001);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue