Tpetra Matrix/Vector Services Version of the Day

Matrix Market file readers and writers for sparse and dense matrices (as CrsMatrix
resp. MultiVector
).
More...
Matrix Market file readers and writers for sparse and dense matrices (as CrsMatrix
resp. MultiVector
).
The Matrix Market (see their web site for details) defines a humanreadable ASCII text file format ("Matrix Market format") for interchange of sparse and dense matrices. This namespace defines classes for reading and writing sparse or dense matrices from a Matrix Market file or input stream.
Matrix Market files are designed for easy reading and writing of test matrices by both humans and computers. They are not intended for highperformance or parallel file input and output. You should use a true parallel file format if you want to do parallel input and output of sparse or dense matrices. Since the Matrix Market format is not optimized for performance or parallelism, our readers and writers assume that the entire matrix can fit in a single MPI process. We do all the file input or output on MPI Rank 0. Distributed input matrices are gathered from all MPI processes in the participating communicator, and distributed output matrices are broadcast from Rank 0 to all MPI processes in the participating communicator.