mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
182cb01c57
Complete support for all floating-point classification functions (fpclassify, signbit) and consistently apply all overloads recursively to the scalar part of a Jet only. This is now inline with how comparison operators work. Sanity checks of derivatives should be performed explicitly on the dual part of a Jet due an ambiguity on reducing the classification results of multiple values. Provide an fdim overload (in addition to fmin and fmax) and support quiet versions of comparison operators also applied recursively to the scalar part of a Jet but without type promotion. Additionally, deprecate Ceres legacy classification functions. New code should use C++11 function names for consistency. Finally, simplify expressions using introduced scalar classification and comparison. Change-Id: I397e37425760717b991eb7ae5da0892f20c5a365