|
kusano |
7d535a |
|
|
kusano |
7d535a |
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
|
|
kusano |
7d535a |
<title>SuperLU: SRC/slaqgs.c File Reference</title>
|
|
kusano |
7d535a |
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
kusano |
7d535a |
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Main Page
|
|
kusano |
7d535a |
Data Structures
|
|
kusano |
7d535a |
Files
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
SRC/slaqgs.c File ReferenceEqulibrates a general sprase matrix. More...
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#include <math.h>
|
|
kusano |
7d535a |
#include "slu_sdefs.h"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Defines
|
|
kusano |
7d535a |
#define THRESH (0.1)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Functions
|
|
kusano |
7d535a |
void slaqgs (SuperMatrix *A, float *r, float *c, float rowcnd, float colcnd, float amax, char *equed)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Detailed Description
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
-- SuperLU routine (version 2.0) --
|
|
kusano |
7d535a |
Univ. of California Berkeley, Xerox Palo Alto Research Center,
|
|
kusano |
7d535a |
and Lawrence Berkeley National Lab.
|
|
kusano |
7d535a |
November 15, 1997
|
|
kusano |
7d535a |
Modified from LAPACK routine SLAQGE
|
|
kusano |
7d535a |
Define Documentation
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define THRESH (0.1)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Function Documentation
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void slaqgs
|
|
kusano |
7d535a |
(
|
|
kusano |
7d535a |
SuperMatrix *
|
|
kusano |
7d535a |
A,
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
float *
|
|
kusano |
7d535a |
r,
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
float *
|
|
kusano |
7d535a |
c,
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
float
|
|
kusano |
7d535a |
rowcnd,
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
float
|
|
kusano |
7d535a |
colcnd,
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
float
|
|
kusano |
7d535a |
amax,
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
char *
|
|
kusano |
7d535a |
equed
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Purpose
|
|
kusano |
7d535a |
=======
|
|
kusano |
7d535a |
SLAQGS equilibrates a general sparse M by N matrix A using the row and
|
|
kusano |
7d535a |
scaling factors in the vectors R and C.
|
|
kusano |
7d535a |
See supermatrix.h for the definition of 'SuperMatrix' structure.
|
|
kusano |
7d535a |
Arguments
|
|
kusano |
7d535a |
=========
|
|
kusano |
7d535a |
A (input/output) SuperMatrix*
|
|
kusano |
7d535a |
On exit, the equilibrated matrix. See EQUED for the form of
|
|
kusano |
7d535a |
the equilibrated matrix. The type of A can be:
|
|
kusano |
7d535a |
Stype = NC; Dtype = SLU_S; Mtype = GE.
|
|
kusano |
7d535a |
R (input) float*, dimension (A->nrow)
|
|
kusano |
7d535a |
The row scale factors for A.
|
|
kusano |
7d535a |
C (input) float*, dimension (A->ncol)
|
|
kusano |
7d535a |
The column scale factors for A.
|
|
kusano |
7d535a |
ROWCND (input) float
|
|
kusano |
7d535a |
Ratio of the smallest R(i) to the largest R(i).
|
|
kusano |
7d535a |
COLCND (input) float
|
|
kusano |
7d535a |
Ratio of the smallest C(i) to the largest C(i).
|
|
kusano |
7d535a |
AMAX (input) float
|
|
kusano |
7d535a |
Absolute value of largest matrix entry.
|
|
kusano |
7d535a |
EQUED (output) char*
|
|
kusano |
7d535a |
Specifies the form of equilibration that was done.
|
|
kusano |
7d535a |
= 'N': No equilibration
|
|
kusano |
7d535a |
= 'R': Row equilibration, i.e., A has been premultiplied by
|
|
kusano |
7d535a |
diag(R).
|
|
kusano |
7d535a |
= 'C': Column equilibration, i.e., A has been postmultiplied
|
|
kusano |
7d535a |
by diag(C).
|
|
kusano |
7d535a |
= 'B': Both row and column equilibration, i.e., A has been
|
|
kusano |
7d535a |
replaced by diag(R) * A * diag(C).
|
|
kusano |
7d535a |
Internal Parameters
|
|
kusano |
7d535a |
===================
|
|
kusano |
7d535a |
THRESH is a threshold value used to decide if row or column scaling
|
|
kusano |
7d535a |
should be done based on the ratio of the row or column scaling
|
|
kusano |
7d535a |
factors. If ROWCND < THRESH, row scaling is done, and if
|
|
kusano |
7d535a |
COLCND < THRESH, column scaling is done.
|
|
kusano |
7d535a |
LARGE and SMALL are threshold values used to decide if row scaling
|
|
kusano |
7d535a |
should be done based on the absolute size of the largest matrix
|
|
kusano |
7d535a |
element. If AMAX > LARGE or AMAX < SMALL, row scaling is done.
|
|
kusano |
7d535a |
=====================================================================
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<address style="text-align: right;"><small>Generated on Mon Nov 22 10:23:48 2010 for SuperLU by </small></address>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
1.5.5
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|