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 <[email protected]> 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
> 

Reply via email to