Skip to content
Novus Examples
mtx249 B

Matrix Market — Complex Hermitian With Conjugate Mirroring (.mtx)

A Hermitian complex matrix where each line carries a real and an imaginary part and the implied mirror entry is the complex conjugate rather than a copy. Every diagonal entry has a zero imaginary part, which the Hermitian property requires and a validator should check.

Preview — first 11 linesmtx
%%MatrixMarket matrix coordinate complex hermitian
% Each entry is 'row column real imaginary'.
% Hermitian: the diagonal must be real and (i,j) implies conj((j,i)).
4 4 6
1 1 2.0 0.0
2 1 1.5 -0.5
2 2 3.0 0.0
3 1 0.25 0.75
3 3 1.0 0.0
4 2 -1.25 0.5

Specifications

Field
complex
Symmetry
hermitian
Rows
4
Columns
4
Stored Entries
6
Values Per Line
4
Diagonal Imaginary Part
0
Mirror Rule
the implied (j,i) entry is the complex conjugate

Testing contract

Expected to pass
Scenario
Load the entries, expand the Hermitian mirror, and verify the diagonal is real.
Expected result
Six stored entries expand so that (1,2) equals 1.5 + 0.5i, the conjugate of the stored (2,1) = 1.5 - 0.5i, and all three diagonal entries have exactly zero imaginary part.

What is a .mtx file?

Matrix Market (.mtx) is a plain-text exchange format for sparse and dense matrices from NIST. A banner line declares the object, format, field, and symmetry — for example `%%MatrixMarket matrix coordinate real general` — comment lines follow, and then a size line gives rows, columns, and the number of stored entries. Coordinate entries list a 1-based row, a 1-based column, and a value, with symmetric matrices storing only the lower triangle.

How to use this file

Use an example .mtx file to test sparse-matrix loaders and numerical pipelines, verifying 1-based to 0-based index conversion, correct expansion of symmetric and pattern matrices, and that the declared entry count matches the data.

How to use this file for testing

“Matrix Market — Complex Hermitian With Conjugate Mirroring (.mtx)” is a deterministic Novus Examples fixture for Scientific data, Editor testing. Citation catalogs (BibTeX, RIS), chemistry structures (MDL Molfile, PDB), and gridded binary data (NetCDF, FITS) — for testing reference managers, molecule viewers, and scientific-data loaders.

Documented properties for this file: 4 rows · 4 columns. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Scientific fixtures are small, valid, and fully synthetic — no real organism, patient, sample, or observation. Point your parser or loader at the file and check it reads the documented records, variables, or headers; binary formats ship a readable twin or metadata listing for comparison.

Generated by generation/scientific.py. Free for any use, no attribution required — license.