CG method for solving linear equations based on Krylov subspace.doc