JuliaLinearAlgebra / IterativeSolvers.jl

Iterative algorithms for solving linear systems, eigensystems, and singular value problems
MIT License
399 stars 105 forks source link

CGResult that saves info #236

Open mohamed82008 opened 5 years ago

mohamed82008 commented 5 years ago

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.

haampie commented 5 years ago

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

mohamed82008 commented 5 years ago

Cool, will make a PR then.