Skip to content

Commit

Permalink
separate Windows regression for Shonan Averaging
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Jan 9, 2025
1 parent cb2be68 commit 556ed9b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gtsam/sfm/tests/testShonanAveraging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ TEST(ShonanAveraging3, CheckWithEigen) {
EXPECT_LONGS_EQUAL(5, initialQ4.size());

Matrix expected(4, 4);
#if __APPLE__ || _WIN32
#if __APPLE__
expected << 0.145767, -0.938445, 0.135713, -0.282233, //
0.780348, -0.0104323, 0.266238, 0.565743, //
-0.383624, 0.0434887, 0.917211, 0.0983088, //
Expand All @@ -216,6 +216,11 @@ TEST(ShonanAveraging3, CheckWithEigen) {
0.571527, 0.0292782, 0.226546, -0.788147, //
-0.349294, 0.064102, 0.93465, 0.0177471, //
0.735667, 0.142857, 0.253519, 0.611649;
#elif _WIN32
expected << 0.0825862, -0.645931, 0.271896, 0.708537, //
0.927285, -0.0156335, 0.291603, -0.234236, //
-0.36419, -0.132115, 0.831933, -0.39724, //
0.0262425, 0.751715, 0.385912, 0.534143;
#endif

EXPECT(assert_equal(SOn(expected), initialQ4.at<SOn>(0), 1e-5));
Expand Down

0 comments on commit 556ed9b

Please sign in to comment.