-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return CGResult from cg and allow absolute tol #238
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #238 +/- ##
==========================================
- Coverage 56.03% 55.54% -0.49%
==========================================
Files 17 17
Lines 1740 1757 +17
==========================================
+ Hits 975 976 +1
- Misses 765 781 +16
Continue to review full report at Codecov.
|
I believe this is ready for a first review. |
How do you plan to deprecate tol? I think it'd be better to add an (I came here because I wanted to use abs_tol in gmres for a inexact newton method, so I'd love if all methods got this abs_/rel_tol separation. Isn't base using abstol and reltol btw?) |
I don't mind getting rid of |
Good. Then I think introducing |
bump |
I'm working on introducing keyword arguments |
#280 is merged now |
This fixes #236. I also allowed passing absolute tolerance as opposed to just a relative one. Since it makes sense for the residual to be <= the tolerance, the absolute tolerance is the one that should be returned in the
CGResult
. And it would be weird if I passtol = ..
tocg
and then I see a different tolerance printed in the result.