Closed memoiry closed 7 years ago
What are the requirements on A for the conjugate gradient method to converge?
What are the requirements on A for the conjugate gradient method to converge?
Symmetric positive definite. That should probably be added to the docs. For random, you'll want something more general like gmres
.
A = rand(10,10)
b = rand(10)
using IterativeSolvers
x = gmres(A,b)
A*x - b
... I didn't ask the question because I wondered about the answer. It was for the OP.
@KristofferC @ChrisRackauckas Thanks for the kindly explanation.
Hi all
I'm trying to use this package, and below is my experiments
Is there anything wrong? the result is a little confusing, it should be nearly zero I think. any explanation will be helpful, thanks!