1SGESC2(1)           LAPACK auxiliary routine (version 3.1)           SGESC2(1)
2
3
4

NAME

6       SGESC2 - a system of linear equations   A * X = scale* RHS  with a gen‐
7       eral N-by-N matrix A using the LU factorization with complete  pivoting
8       computed by SGETC2
9

SYNOPSIS

11       SUBROUTINE SGESC2( N, A, LDA, RHS, IPIV, JPIV, SCALE )
12
13           INTEGER        LDA, N
14
15           REAL           SCALE
16
17           INTEGER        IPIV( * ), JPIV( * )
18
19           REAL           A( LDA, * ), RHS( * )
20

PURPOSE

22       SGESC2 solves a system of linear equations
23
24

ARGUMENTS

26       N       (input) INTEGER
27               The order of the matrix A.
28
29       A       (input) REAL array, dimension (LDA,N)
30               On  entry,  the   LU  part  of  the factorization of the n-by-n
31               matrix A computed by SGETC2:  A = P * L * U * Q
32
33       LDA     (input) INTEGER
34               The leading dimension of the array A.  LDA >= max(1, N).
35
36       RHS     (input/output) REAL array, dimension (N).
37               On entry, the right hand side vector b.  On exit, the  solution
38               vector X.
39
40       IPIV    (input) INTEGER array, dimension (N).
41               The  pivot  indices;  for  1 <= i <= N, row i of the matrix has
42               been interchanged with row IPIV(i).
43
44       JPIV    (input) INTEGER array, dimension (N).
45               The pivot indices; for 1 <= j <= N, column j of the matrix  has
46               been interchanged with column JPIV(j).
47
48       SCALE    (output) REAL
49                On exit, SCALE contains the scale factor. SCALE is chosen 0 <=
50                SCALE <= 1 to prevent owerflow in the solution.
51

FURTHER DETAILS

53       Based on contributions by
54          Bo Kagstrom and Peter Poromaa, Department of Computing Science,
55          Umea University, S-901 87 Umea, Sweden.
56
57
58
59
60 LAPACK auxiliary routine (versionNo3v.e1m)ber 2006                       SGESC2(1)
Impressum