[petsc-users] row scale the matrix
    Barry Smith 
    bsmith at mcs.anl.gov
       
    Mon May 26 13:44:13 CDT 2014
    
    
  
   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