MatrixMarket file converter to PETSc bin format is a small software written in C and PETSc library to convert, as its name suggest, Matrix Market files to PETSc binary format. This is extremely useful if you have to benchmark your codes written in PETSc using standard matrices coming from [Matrix Market] 1 or the [University of Florida Sparse Matrix Collection] 2
Working [PETSc] 3 installation
Nothing much to do but : make
./converter -matrix_file matrix_market_file.mtx
or
./converter -vector_file matrix_market_vector_file.mtx (typically ends with _b.mtx)
or
./converter -matrix_file matrix_market_file.mtx -vector_file matrix_market_vector_file.mtx
###For complex matrix market matrix:
add the flg -complex PETSC_TRUE in the end
The results will be placed in separate PETSc binary files (in tar.gz)