Look in bin/matlab/ for Matlab scripts that save sparse matrices directly and quickly to PETSc binary format.
On Nov 29, 2009, at 11:36 PM, ming zhu wrote: > HI > I am trying to convert a sparse matrix from matlab data file to > PETSC binary file. While PETSC offer an example (\src\mat\examples > \tests\ex72.c) to convert Matmarket file to binary. It is too slow > for me. My matrix is 1.7 M * 1.7 M with 62 M non zeros. So, is there > any faster way to convert it? Or is it possible to write to it one > line by one line ? > Thank you > > > ?????????????????
