Galerkin methods
Galerkin methods choose an approximate solution from a trial space and require the residual to be orthogonal to that space. CG specializes this principle to a positive-definite system; FOM uses the full Krylov basis for a general square system. Preconditioning and block right-hand sides give further methods, each with its own mathematical definition.
Implementation guides
Methods
Conjugate gradient (CG)
Solve a symmetric positive-definite system \mathbf{A}\mathbf{x}=\mathbf{b} using a short Krylov recurrence.
Preconditioned CG (PCG)
Apply conjugate gradients to a symmetrically preconditioned positive-definite system.
Block CG
Solve several positive-definite systems together using block Krylov spaces.
Full orthogonalization method (FOM)
Enforce Galerkin orthogonality using a full Krylov basis.