[petsc-users] row scale the matrix
Hoang Giang Bui
hgbk2008 at gmail.com
Mon Jun 2 06:04:39 CDT 2014
That's right. It does exactly what I want.
BR
Bui
On 05/26/2014 08:44 PM, Barry Smith wrote:
> Why not MatDiagonalScale()? The left diagonal matrix l scales each row i of the matrix by l[i,i] so it seems to do exactly what you want.
>
> Barry
>
> On May 26, 2014, at 11:02 AM, Hoang Giang Bui <hgbk2008 at gmail.com> wrote:
>
>> Hi
>>
>> My matrix contains some overshoot entries in the diagonal and I want to row scale by a factor that I defined. How can I do that with petsc ? (I don't want to use MatDiagonalScale instead, I also don't want to create a diagonal matrix and left multiply to the system.)
>>
>> BR
>> Bui
>>
More information about the petsc-users
mailing list