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

CGResult that saves info

Open mohdibntarek opened this issue 6 years ago • 2 comments

It would be nice to have a CGResult struct that saves things like the last residual, number of iterations needed to converge, and options. If this is approved in principle, I can make a PR. This will be a breaking change however. A similar thing may also need to be done for the other algorithms but I am mostly interested in CG now.

mohdibntarek avatar Jan 15 '19 01:01 mohdibntarek

Yes, since forever cg(..., log = true) has been type unstable as well. See https://github.com/JuliaMath/IterativeSolvers.jl/issues/185

haampie avatar Jan 15 '19 07:01 haampie

Cool, will make a PR then.

mohdibntarek avatar Jan 15 '19 08:01 mohdibntarek