mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-31 01:20:38 +08:00
83133357dd
Unfortunately, libc++'s 3-argument std::hypot implementation is numerically unstable until LLVM 19.x. Therefore, checking the arguments for zeros is insufficient since an underflow can still occur resulting in a zero norm which requires another check. As such, division by zero cannot be reliably avoided. Change-Id: I189c8dc722aaec1ebc3ec8b1a177e1d8ac3b36db