how to inverse a sparse matrix in Petsc?
Barry Smith
bsmith at mcs.anl.gov
Mon Feb 4 07:58:27 CST 2008
Yes. It uses the LU factorization of the matrix computed with
MatLUFactor().
Barry
On Feb 4, 2008, at 7:49 AM, li pan wrote:
> 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