Routine to convert matrix to CSR format

Hong Zhang hzhang at mcs.anl.gov
Sat Aug 25 16:36:08 CDT 2007


You can use
MatGetRowIJ()
(http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatGetRowIJ.html)
and
MatGetArray()
(http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatGetArray.html#MatGetArray)

Hong

On Sat, 25 Aug 2007, Ben Tay wrote:

> Hi,
>
> May I know if there's a routine which can convert a matrix initially
> created using MatCreateSeqAIJ to compressed row format (CSR) ? Then I
> would like to view it in my visual fortran debugger. In other words, the
> matrix is in standard array format, not Mat.
>
> Thanks
>
>




More information about the petsc-users mailing list