how to inverse a sparse matrix in Petsc?

Dave May dave.mayhem23 at
Mon Feb 4 08:04:17 CST 2008

    Does anyone know how much faster (approximately) using MatMatSolve is
to using PCComputeExplicitOperator(), when the PC in the latter function is
defined to be LU?


On Feb 5, 2008 12:10 AM, Barry Smith <bsmith at> wrote:

>    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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the petsc-users mailing list