commit | e84cf10e13633618a780543e83c117a84316b790 | [log] [tgz] |
---|---|---|
author | Sameer Agarwal <sameeragarwal@google.com> | Mon Dec 14 08:55:05 2020 -0800 |
committer | Sameer Agarwal <sameeragarwal@google.com> | Mon Dec 14 08:55:05 2020 -0800 |
tree | 51c10a358288bb8a2eeeebd6602294362f16419f | |
parent | 66b4c33e817ec34d64c7513950e74a3382e06662 [diff] [blame] |
Fix an errant double in TinySolver. Thanks to Bogdan Burlacu for pointing this out. Change-Id: I7a59a589c1bf919954e4905df3376e9aeb1a12d7
diff --git a/include/ceres/tiny_solver.h b/include/ceres/tiny_solver.h index 47db582..0957f78 100644 --- a/include/ceres/tiny_solver.h +++ b/include/ceres/tiny_solver.h
@@ -282,7 +282,7 @@ } Scalar tmp = Scalar(2 * rho - 1); - u = u * std::max(1 / 3., 1 - tmp * tmp * tmp); + u = u * std::max(Scalar(1 / 3.), 1 - tmp * tmp * tmp); v = 2; continue; }