Return CGResult from cg and allow absolute tol#238
Return CGResult from cg and allow absolute tol#238mohdibntarek wants to merge 3 commits intoJuliaLinearAlgebra:masterfrom
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 = ..tocgand then I see a different tolerance printed in the result.