Setting up input data for benchmarks and integration tests can be tedious in pure MLIR. With more sparse tensor work planned, this convenience library simplifies reading sparse matrices in the popular Matrix Market Exchange Format (see https://math.nist.gov/MatrixMarket). Note that this library is *not* part of core MLIR. It is merely intended as a convenience library for benchmarking and integration testing. Reviewed By: penpornk Differential Revision: https://reviews.llvm.org/D88856
16 lines
234 B
Plaintext
16 lines
234 B
Plaintext
%%MatrixMarket matrix coordinate real general
|
|
%
|
|
% This is a test sparse matrix in Matrix Market Exchange Format.
|
|
% see https://math.nist.gov/MatrixMarket
|
|
%
|
|
5 5 9
|
|
1 1 1.0
|
|
1 4 1.4
|
|
2 2 2.0
|
|
2 5 2.5
|
|
3 3 3.0
|
|
4 4 4.0
|
|
4 1 4.1
|
|
5 5 5.0
|
|
5 2 5.2
|