Demonstrate Use of Harwell-Boeing Sparse Matrix Format

PLASMA_MATRIX, a MATLAB library which demonstrates how a MATLAB sparse matrix can be written to a Harwell-Boeing sparse matrix file for storage or transfer, and then later retrieved.


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.

Related Data and Programs:

HB_IO, a MATLAB library which reads and writes sparse linear systems stored in the Harwell-Boeing Sparse Matrix format.

HB_TO_MSM, a MATLAB program which converts a Harwell Boeing sparse matrix to MATLAB sparse matrix format.

MM_TO_HB, a MATLAB program which reads the sparse matrix information from an MM Matrix Market file and writes a corresponding HB Harwell Boeing file.

MM_TO_MSM, a MATLAB program which reads a Matrix Market file defining a sparse matrix, and creates a corresponding MATLAB sparse matrix data structure.

MSM_TO_HB, a MATLAB program which writes a MATLAB sparse matrix to a Harwell Boeing (HB) file, by Xiaoye Li.

MSM_TO_MM, a MATLAB program which writes a MATLAB sparse matrix to a Matrix Market (MM) file;


ST_TO_HB, a MATLAB program which converts a sparse matrix file from ST format to Harwell Boeing (HB) format;

TEST_MAT, a MATLAB library which defines test matrices with known inverses, determinants, eigenvalues and so on.


James Cheung wrote the code that defines the plasma matrix.


  1. Iain Duff, Roger Grimes, John Lewis,
    User's Guide for the Harwell-Boeing Sparse Matrix Collection,
    October 1992.

Source Code:

Last revised on 25 February 2019.