**plasma_matrix**,
a Python code which
sets up a matrix associated with a problem in plasma physics.

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

**plasma_matrix** is available in
a MATLAB version and
a Python version.

jordan_matrix_random, a Python code which returns a random matrix in Jordan canonical form.

risk_matrix, a Python code which computes the transition and adjacency matrix for the game of RISK.

snakes_matrix, a Python code which computes the transition matrix for Snakes and Ladders.

test_matrix, a Python code which defines test matrices for which the condition number, determinant, eigenvalues, eigenvectors, inverse, null vectors, P*L*U factorization or linear system solution are known. Examples include the Fibonacci, Hilbert, Redheffer, Vandermonde, Wathen and Wilkinson matrices.

wathen_matrix, 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).

James Cheung wrote the code that defines the plasma matrix.

- plasma_matrix.py, calls all the tests.
- plasma_matrix.sh, runs all the tests.
- plasma_matrix.txt, the output file.

- plasma_5_sparsity.png, the matrix sparsity graph for the small example, from the spy() command.
- plasma_100_sparsity.png, the matrix sparsity graph for the larger example, from the spy() command.