1CGERFS(1)                LAPACK routine (version 3.1)                CGERFS(1)
2
3
4

NAME

6       CGERFS - the computed solution to a system of linear equations and pro‐
7       vides error bounds and backward error estimates for the solution
8

SYNOPSIS

10       SUBROUTINE CGERFS( TRANS, N, NRHS, A, LDA, AF, LDAF, IPIV, B,  LDB,  X,
11                          LDX, FERR, BERR, WORK, RWORK, INFO )
12
13           CHARACTER      TRANS
14
15           INTEGER        INFO, LDA, LDAF, LDB, LDX, N, NRHS
16
17           INTEGER        IPIV( * )
18
19           REAL           BERR( * ), FERR( * ), RWORK( * )
20
21           COMPLEX        A(  LDA, * ), AF( LDAF, * ), B( LDB, * ), WORK( * ),
22                          X( LDX, * )
23

PURPOSE

25       CGERFS improves the computed solution to a system of  linear  equations
26       and  provides  error  bounds and backward error estimates for the solu‐
27       tion.
28
29

ARGUMENTS

31       TRANS   (input) CHARACTER*1
32               Specifies the form of the system of equations:
33               = 'N':  A * X = B     (No transpose)
34               = 'T':  A**T * X = B  (Transpose)
35               = 'C':  A**H * X = B  (Conjugate transpose)
36
37       N       (input) INTEGER
38               The order of the matrix A.  N >= 0.
39
40       NRHS    (input) INTEGER
41               The number of right hand sides, i.e., the number of columns  of
42               the matrices B and X.  NRHS >= 0.
43
44       A       (input) COMPLEX array, dimension (LDA,N)
45               The original N-by-N matrix A.
46
47       LDA     (input) INTEGER
48               The leading dimension of the array A.  LDA >= max(1,N).
49
50       AF      (input) COMPLEX array, dimension (LDAF,N)
51               The  factors  L  and U from the factorization A = P*L*U as com‐
52               puted by CGETRF.
53
54       LDAF    (input) INTEGER
55               The leading dimension of the array AF.  LDAF >= max(1,N).
56
57       IPIV    (input) INTEGER array, dimension (N)
58               The pivot indices from CGETRF; for 1<=i<=N, row i of the matrix
59               was interchanged with row IPIV(i).
60
61       B       (input) COMPLEX array, dimension (LDB,NRHS)
62               The right hand side matrix B.
63
64       LDB     (input) INTEGER
65               The leading dimension of the array B.  LDB >= max(1,N).
66
67       X       (input/output) COMPLEX array, dimension (LDX,NRHS)
68               On  entry,  the  solution  matrix X, as computed by CGETRS.  On
69               exit, the improved solution matrix X.
70
71       LDX     (input) INTEGER
72               The leading dimension of the array X.  LDX >= max(1,N).
73
74       FERR    (output) REAL array, dimension (NRHS)
75               The estimated forward error bound for each solution vector X(j)
76               (the  j-th  column  of the solution matrix X).  If XTRUE is the
77               true solution corresponding to X(j), FERR(j)  is  an  estimated
78               upper bound for the magnitude of the largest element in (X(j) -
79               XTRUE) divided by the magnitude of the largest element in X(j).
80               The  estimate  is as reliable as the estimate for RCOND, and is
81               almost always a slight overestimate of the true error.
82
83       BERR    (output) REAL array, dimension (NRHS)
84               The componentwise relative backward error of each solution vec‐
85               tor  X(j) (i.e., the smallest relative change in any element of
86               A or B that makes X(j) an exact solution).
87
88       WORK    (workspace) COMPLEX array, dimension (2*N)
89
90       RWORK   (workspace) REAL array, dimension (N)
91
92       INFO    (output) INTEGER
93               = 0:  successful exit
94               < 0:  if INFO = -i, the i-th argument had an illegal value
95

PARAMETERS

97       ITMAX is the maximum number of steps of iterative refinement.
98
99
100
101 LAPACK routine (version 3.1)    November 2006                       CGERFS(1)
Impressum