Introduction
The Harwell-Boeing format is a plain text format for storing and exchanging sparse
matrices, devised by Iain Duff, Roger Grimes and John Lewis for the Harwell-Boeing
collection of test matrices. Files are seen with the extension .hb, and
with three-letter extensions such as .rua and .rsa that spell
out the kind of matrix. Matrix Market is a related
text format for matrices.
Structure
A file opens with four header lines of fixed-width fields, or five when it carries right-hand sides. The first holds a title and a key, the second counts the lines of each data section, the third gives the three-character matrix type and the dimensions, and the fourth gives the Fortran formats used by the data. Pointers, indices, values and right-hand sides follow. In the type code, the first letter says whether the data is real, complex or a pattern, the second gives the symmetry and the third whether the matrix is assembled or elemental.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the column positions of each header field, the data sections and the right-hand side block.
- Viewer: the site has no viewer for this format.
Links
Software
- Wolfram Language – imports and exports Harwell-Boeing files
Reference
- HB files – John Burkardt’s description of the header, with sample files
- Matrix Market file formats – NIST’s page, with a section on Harwell-Boeing