Chung-Kan Huang <[email protected]> writes: > Hi, > > I am trying to output the matrix but when I looked at > PetscViewerSetFormat It doesn't seem to provide ways to output matrix in > CSR format. > > Am I looking at the right place?
It is a (binary) CSR format. There is no standard "CSR file format". The closest might be MatrixMarket, which is a profoundly terrible format. You can read the PETSc binary format using the Python or MATLAB/Octave scripts distributed with PETSc.
signature.asc
Description: PGP signature
