how to inverse a sparse matrix in Petsc?

Barry Smith bsmith at mcs.anl.gov
Mon Feb 4 07:10:15 CST 2008


    For sequential AIJ matrices you can fill the B matrix with the  
identity and then use
MatMatSolve().

    Note since the inverse of a sparse matrix is dense the B matrix is  
a SeqDense matrix.

    Barry

On Feb 4, 2008, at 12:37 AM, Yujie wrote:

> Hi,
> Now, I want to inverse a sparse matrix. I have browsed the manual,  
> however, I can't find some information. could you give me some advice?
>
> thanks a lot.
>
> Regards,
> Yujie
>




More information about the petsc-users mailing list