JACOBI, a C++ library which sets up the Jacobi iteration for linear systems.

The program uses gnuplot() to create plots of the residual and the "motion" of the solution over the iteration.


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


jacobi is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version and an R version.

Related Data and Programs:

CG_RC, a C++ library which implements the conjugate gradient method for solving a positive definite sparse linear system A*x=b, using reverse communication.

gnuplot_test, C++ codes which illustrate how a program can write data and command files so that gnuplot can create plots of the program results.


JACOBI_OPENMP, a C++ program which illustrates the use of the OpenMP application program interface to parallelize a Jacobi iteration solving A*x=b.

TEST_MAT, a C++ library which defines test matrices.


Source Code:

Last revised on 20 March 2020.