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 MIT license


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

Related Data and Programs:

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.

Source Code:

Last revised on 22 March 2022.