MatUnScaleSystem

Unscales a vector solution and right hand side to match the original scaling of a scaled matrix.

Synopsis

#include "mat.h" 
int MatUnScaleSystem(Mat mat,Vec x,Vec b)
Collective on Mat

Input Parameter

Notes

For AIJ, BAIJ, and BDiag matrix formats, the matrices are not internally scaled, so this does nothing. For MPIROWBS it permutes and diagonally scales.

The SLES methods automatically call this routine when required (via PCPreSolve()) so it is rarely used directly.

Keywords

matrix, scale

See Also

MatUseScaledForm(), MatScaleSystem()

Level:Developer
Location:src/mat/interface/matrix.c
Matrix Index
Table of Contents

mat - the matrix
x - solution vector (or PETSC_NULL) + b - right hand side vector (or PETSC_NULL)