GMatDiagonalScaleConstrained

Scales a constrained 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

#include "gvec.h" 
int GMatDiagonalScaleConstrained(GMat mat, GVec l, GVec r)

Input Parameters

mat -The grid matrix to be scaled
l -The left scaling vector (or PETSC_NULL)
r -The right scaling vector (or PETSC_NULL)

Notes

GMatDiagonalScaleConstrained() computes A <- LAR, where
     L = a diagonal matrix
     R = a diagonal matrix

Keywords

matrix, diagonal, scale

See Also

MatDiagonalScale()

Level:advanced
Location:
src/gvec/interface/gmat.c
Index of all GVec routines
Table of Contents for all manual pages
Index of all manual pages