Divide Jets directly Dividing a Jet multiplies by the reciprocal of the divisor and thus rounds twice. The quotient of Jets then differs from the same quotient of doubles, so 49 / 49 yields 0.99999999999999989 instead of 1 and a functor evaluated with Jets disagrees with its evaluation with doubles. Callers cannot opt out of this rounding, whereas the reciprocal form stays available by writing it explicitly. Divide the scalar part and the derivatives directly, accepting 1.3 to 4 times slower division. Change-Id: I932b55cba1714ed192ab2645961feaf20c4216a6
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 the Ceres Solver website for more information.