Introduction
The Matrix Market exchange formats are plain text formats for passing matrices between
programs. They were designed for Matrix
Market, NIST’s collection of test matrices for numerical linear algebra. Files
commonly use the extension .mtx, and NIST distributes them compressed with
gzip.
Structure
A file starts with a header line beginning %%MatrixMarket, followed by
four text fields, for example %%MatrixMarket matrix coordinate real
general. Comment lines may follow. A size line then gives the dimensions and,
in the coordinate form used for sparse matrices, the number of entries listed. The
data lines come last. An array form holds dense matrices.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the header fields and their allowed values, the symmetry rules and the order of data in the array form.
- Viewer: the site has no viewer for this format.
Links
Software
- Wolfram Language – imports and exports Matrix Market files
- SciPy – scientific library with Matrix Market input and output (Python)
Reference
- Matrix Market file formats – NIST’s description, with reading and writing code
- MM files – John Burkardt’s summary with sample files