Convert Sparse Matrix File from ST to HB Format

ST_TO_HB is a FORTRAN90 program which reads sparse matrix data from an ST (Sparse Triplet) file and writes it to an HB (Harwell-Boeing) file.


st_to_hb file.hb
the ST file to be read;
the HB file to be created.


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


ST_TO_HB is available in a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

HB, a data directory which contains examples of HB files, the Harwell Boeing sparse matrix file format;

HB_IO, a FORTRAN90 library which reads and writes sparse linear systems stored in the Harwell-Boeing (HB) format.

HB_TO_ST, a FORTRAN90 program which converts a sparse matrix from Harwell-Boeing to sparse triplet format.

HBSMC, a dataset directory which contains the Harwell Boeing Sparse Matrix Collection;

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.

ST, the format which is used for the input to this program.

ST_IO, a FORTRAN90 library which reads and writes sparse linear systems stored in the ST (Sparse Triplet) format.

ST_TO_CC, a C library which converts sparse matrix data from Sparse Triplet (ST) format to Compressed Column (CC) format.

ST_TO_MM, a MATLAB program which converts a sparse matrix file from ST format to MM format (Matrix Market format);


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

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the FORTRAN90 source codes.

Last revised on 29 November 2008.