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


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 Python code which implements the conjugate gradient method for solving a symmetric positive definite sparse linear system A*x=b, using reverse communication.

test_mat, a Python code which defines test matrices.

wathen, a Python code which compares storage schemes (full, banded, sparse triplet, sparse) and solution strategies (A\x, Linpack, conjugate gradient (CG)) for linear systems involving the Wathen matrix, which can arise when solving a problem using the finite element method (FEM).

Source Code:

Last modified on 20 March 2018.