Modernize ParameterBlock::Plus with std::clamp Use std::clamp for projecting the updated parameter state onto its box constraints. This provides a more idiomatic and concise implementation than separate std::min/std::max loops, especially when both lower and upper bounds are present. Change-Id: I1f6248ed8f0313338cf9a1c98d79a023ae281e6c
Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.
Please see ceres-solver.org for more information.