Open fredrikekre opened 4 years ago
And explicitly:
julia> x = zeros(10); cg!(x, A, b); norm(A*x-b)
0.10052838755750378
julia> x = zeros(10); cg!(x, A, b; maxiter=11); norm(A*x-b)
2.972481305376441e-12
There seems to be some counting error since after 10 iterations we should have the exact solution.
Example:
Looks like the 11th step is needed.