**cg_test**,
a FORTRAN77 code which
calls cg(), which
implements a simple version of the conjugate gradient (CG) method
for solving a system of linear equations of the form A*x=b,
suitable for situations in which the matrix A is
symmetric positive definite (SPD), having only real, positive eigenvalues.

The computer code and data files made available on this web page are distributed under the GNU LGPL license.

cg, a FORTRAN77 code which implements a simple version of the conjugate gradient (CG) method for solving a system of linear equations of the form A*x=b, suitable for situations in which the matrix A is symmetric positive definite (SPD), having only real, positive eigenvalues.

- cg_test.f, a sample calling program.
- cg_test.sh, BASH commands to compile and run the sample program.
- cg_test.txt, the output file.