[petsc-users] From AIJ to CSR

Su Yan suyan0 at gmail.com
Tue Jul 23 20:59:12 CDT 2013


Hi, is there any way that I can extract the index information and element
array from a AIJ matrix? Say, I have a Mat A, which is created using the
CSR format with
MatCreateSeqAIJ<http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatCreateSeqAIJ.html#MatCreateSeqAIJ>().
How can I get int *ia, int *ja, and double *array out of A?

Thanks,
Su
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130723/309c0e7e/attachment.html>


More information about the petsc-users mailing list