jacobi, a MATLAB code which uses the Jacobi iteration to solve a symmetric positive definite (SPD) linear system.


The computer code and data files described and made available on this web page are distributed under the MIT 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 MATLAB code which implements the conjugate gradient method for solving a symmetric positive definite (SPD) sparse linear system A*x=b, using reverse communication (RC).

gauss_seidel, a MATLAB code which implements the Gauss-Seidel iteration for linear systems.


jacobi_poisson_1d, a MATLAB code which demonstrates how the linear system for a discretized version of the steady 1D Poisson equation can be solved by the Jacobi iteration.

test_mat, a MATLAB code which defines test matrices.

Source Code:

Last modified on 04 February 2019.