MatDiagonalScale
Scales a matrix on the left and right by diagonal matrices that are stored as vectors. Either of the two scaling matrices can be PETSC_NULL.
Synopsis
int MatDiagonalScale(Mat mat,Vec l,Vec r)
Collective on
Mat
Input Parameters
mat | - the matrix to be scaled
|
l | - the left scaling vector (or PETSC_NULL)
|
r | - the right scaling vector (or PETSC_NULL)
|
Notes
MatDiagonalScale() computes A = LAR,
whereL = a diagonal matrix, R = a diagonal
matrix
Keywords
matrix, diagonal, scale
See Also
MatDiagonalScale()
Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents