Skip to content
Prev 4408 / 63424 Next

bounds violations, infinite loops in optim/L-BFGS-B (PR#671)

Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:
It definitely shouldn't... Basically what it does is to defeat the
"guard digits" that are used in Intel FPUs (internally using 10 bytes
rather than 8 for doubles). While there are some rare cases where this
messes up the "endgame" of numerical algorithms, it increases overall
numerical accuracy. Also, storing all floating-point values off-chip
causes a substantial decrease in performance.

In the case(-s ?) I've seen, a routine was trying too hard to squeeze
the last bit of precision out of a termination criterion.

Optimization is another likely culprit for this kind of trouble, so
perhaps one should try turning it off for this code?