Fix a Jet conversion bug in rotation.h
https: //github.com/ceres-solver/ceres-solver/issues/965
Change-Id: I4c99639be6afbfbefea3f9d56b6eaddbe4f23fe9
diff --git a/include/ceres/rotation.h b/include/ceres/rotation.h
index ab1e69e..0fa96b2 100644
--- a/include/ceres/rotation.h
+++ b/include/ceres/rotation.h
@@ -578,7 +578,7 @@
} else {
ea[0] = atan2(-R(j, k), R(j, j));
ea[1] = atan2(sy, R(i, i));
- ea[2] = 0;
+ ea[2] = 0.0;
}
} else {
const T cy = hypot(R(i, i), R(j, i));
@@ -589,7 +589,7 @@
} else {
ea[0] = atan2(-R(j, k), R(j, j));
ea[1] = atan2(-R(k, i), cy);
- ea[2] = 0;
+ ea[2] = 0.0;
}
}
if constexpr (EulerSystem::kIsParityOdd) {