From 92ad18b8aec62f8cd2b9b9e0d27c4d37427e152d Mon Sep 17 00:00:00 2001 From: Sameer Agarwal Date: Tue, 18 Apr 2023 09:18:01 -0700 Subject: [PATCH] Fix a Jet conversion bug in rotation.h https: //github.com/ceres-solver/ceres-solver/issues/965 Change-Id: I4c99639be6afbfbefea3f9d56b6eaddbe4f23fe9 --- include/ceres/rotation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ceres/rotation.h b/include/ceres/rotation.h index ab1e69e6a..0fa96b277 100644 --- a/include/ceres/rotation.h +++ b/include/ceres/rotation.h @@ -578,7 +578,7 @@ void RotationMatrixToEulerAngles( } 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 @@ void RotationMatrixToEulerAngles( } 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) {