OptimKit.jl icon indicating copy to clipboard operation
OptimKit.jl copied to clipboard

Use safe_sqrt for norms

Open lkdvos opened this issue 1 year ago • 0 comments

This is a patch-fix for the encounter of (small) negative norms, in order to stabilize the algorithms. In particular, whenever this happens and the norm of a small negative number is requested, instead of a DomainError, an error will be printed (not thrown!) and we'll return eps.

lkdvos avatar Jun 12 '24 09:06 lkdvos