small comment/print

release/4.3a0
Frank Dellaert 2010-01-19 04:39:54 +00:00
parent b01c111a1d
commit 6dcc275432
2 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,7 @@ namespace gtsam {
/* ************************************************************************* */
void print(const Vector& v, const string& s) {
size_t n = v.size();
odprintf("%s[", s.c_str());
odprintf("%s [", s.c_str());
for(size_t i=0; i<n; i++)
odprintf("%g%s", v[i], (i<n-1 ? "; " : ""));
odprintf("]\n");

View File

@ -57,6 +57,7 @@ TEST(timeGaussianFactorGraph, planar)
// 1742: 5.97, 5.97, 5.97, 5.99, 6.02
// 1746: 5.96, 5.96, 5.97, 6.00, 6.04
// 1748: 5.91, 5.92, 5.93, 5.95, 5.96
// 1839: 0.206956 0.206939 0.206213 0.206092 0.206780 // colamd !!!!
int N = 30;
double time = timePlanarSmoother(N); cout << time << endl;
DOUBLES_EQUAL(5.97,time,0.1);