Skip to content

brunowu/MatrixMarketToPETSc

Repository files navigation

MatrixMarketToPETSc

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

Requirements :

Working [PETSc] 3 installation

Installation :

Nothing much to do but : make

How to use :

./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)

About

Matrix Market type to Petsc support binary type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published