how to inverse a sparse matrix in Petsc?

li pan li76pan at yahoo.com
Mon Feb 4 07:49:36 CST 2008


hi,
Does MatMatSolve() use Gauss elimination method?

thanx

pan


--- Barry Smith <bsmith at mcs.anl.gov> 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
> 
> 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
> >
> 
> 



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs




More information about the petsc-users mailing list