Re: tol, atol and rtol behavior of scipy.sparse.linalg solvers
Charles R Harris <[email protected]> Mon, 1 May 2023 19:03:19 -0600
| Newsgroups | gmane.comp.python.scientific.devel |
|---|---|
| Message-ID | <CAB6mnx+2Zp1R-BvNBZMs4z6xWNGxX9LjGZFqWKZVCeL-aj2tvw@mail.gmail.com> |
On Mon, May 1, 2023 at 5:21 PM Stefan van der Walt <[email protected]> wrote: > On Mon, May 1, 2023, at 11:49, Ilhan Polat wrote: > > If atol is actually set to something, then we return max(atol, > tol*norm(b)). Why max is used I don't understand. > > Typically, atol, rtol pair is used as tol = atol + rtol*<some metric>. > This is more or less what everybody expects from this pair and their naming > is chosen to reflect this. But I'm a bit lost in all the issues I could > read. > > > The first formulation — max(atol, rtol*norm(b)) — is what I'd expect. > I.e., you use atol when answers are small, or rtol for larger answers. I'm > a bit surprised to see them summed; is this standard? > IIRC, I first saw it in *Numerical Recipes* (1986). Chuck _______________________________________________ SciPy-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/scipy-dev.python.org/ Member address: [email protected]