HB_TO_ST
Harwell-Boeing => Sparse Triplet Format


HB_TO_ST is a FORTRAN77 program which reads the definition of a sparse matrix from a file in Harwell-Boeing format, and writes the information into a Sparse Triplet file.

Usage:

hb_to_st < hb.file > st.file
reads the sparse matrix information from the Harwell-Boeing file hb.file and writes it to the sparse triplet format file st.file.

Related Data and Programs:

CSPARSE is a C library which carries out the direct solution of sparse linear systems.

DLAP_IO, a FORTRAN90 library which reads and writes DLAP sparse matrix files;

DSP_TO_ST, a FORTRAN90 program which converts a sparse matrix file from DSP format (one-based indices) to ST format (zero-based indices);

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

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

HB_TO_MSM is a MATLAB program which converts a sparse matrix stored in a Harwell Boeing file to MATLAB sparse matrix format;

HB_TO_ST is available in a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

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

MM_IO is a FORTRAN90 library which reads and writes sparse linear systems stored in the Matrix Market format.

MM_TO_MSM is 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 file;

NSPCG is a FORTRAN90 library which applies nonsymmetric preconditioned conjugate gradient methods to sparse linear systems.

SPARSE is a built-in MATLAB function which defines and manages sparse matrices.

SPARSEKIT is a FORTRAN90 library which carries out operations on sparse matrices, by Yousef Saad.

SPARSEPAK is a FORTRAN90 library which forms an obsolete version of the Waterloo Sparse Matrix Package.

ST, a data directory of examples of ST files, the Sparse Triplet format, a sparse matrix file format, storing just (I,J,A(I,J)), and using zero-based indexing.

ST_IO is a FORTRAN90 library which reads and writes sparse linear systems stored in the ST "sparse triplet" Sparse Matrix format.

ST_TO_DSP, a FORTRAN90 program which converts a sparse matrix file from ST format (zero-based indices) to DSP format (one-based indices);

Reference:

  1. Timothy Davis,
    Direct Methods for Sparse Linear Systems,
    SIAM, Philadelphia, 2006.
  2. Iain Duff, Roger Grimes, John Lewis,
    User's Guide for the Harwell-Boeing Sparse Matrix Collection,
    October 1992,
    Available online at ../../pdf/hb.pdf.

Source Code:

Examples and Tests:

5BY5 is a simple 5 by 5 matrix:

        1.1  0.0  0.0  1.4  0.0
        0.0  2.2  0.0  0.0  0.0
        3.1  3.2  3.3  3.4  3.5
        0.0  0.0  0.0  4.4  4.5
        5.1  5.2  0.0  0.0  5.5
      

KERSHAW is a simple 4 by 4 matrix:

         3  -2   0   2
        -2   3  -2   0
         0  -2   3  -2
         2   0  -2   3
      

List of Routines:

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


Last revised on 10 March 2006.