1DPPRFS(1) LAPACK routine (version 3.1) DPPRFS(1)
2
3
4
6 DPPRFS - the computed solution to a system of linear equations when the
7 coefficient matrix is symmetric positive definite and packed, and pro‐
8 vides error bounds and backward error estimates for the solution
9
11 SUBROUTINE DPPRFS( UPLO, N, NRHS, AP, AFP, B, LDB, X, LDX, FERR, BERR,
12 WORK, IWORK, INFO )
13
14 CHARACTER UPLO
15
16 INTEGER INFO, LDB, LDX, N, NRHS
17
18 INTEGER IWORK( * )
19
20 DOUBLE PRECISION AFP( * ), AP( * ), B( LDB, * ), BERR( * ),
21 FERR( * ), WORK( * ), X( LDX, * )
22
24 DPPRFS improves the computed solution to a system of linear equations
25 when the coefficient matrix is symmetric positive definite and packed,
26 and provides error bounds and backward error estimates for the solu‐
27 tion.
28
29
31 UPLO (input) CHARACTER*1
32 = 'U': Upper triangle of A is stored;
33 = 'L': Lower triangle of A is stored.
34
35 N (input) INTEGER
36 The order of the matrix A. N >= 0.
37
38 NRHS (input) INTEGER
39 The number of right hand sides, i.e., the number of columns of
40 the matrices B and X. NRHS >= 0.
41
42 AP (input) DOUBLE PRECISION array, dimension (N*(N+1)/2)
43 The upper or lower triangle of the symmetric matrix A, packed
44 columnwise in a linear array. The j-th column of A is stored
45 in the array AP as follows: if UPLO = 'U', AP(i + (j-1)*j/2) =
46 A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i + (j-1)*(2n-j)/2) =
47 A(i,j) for j<=i<=n.
48
49 AFP (input) DOUBLE PRECISION array, dimension (N*(N+1)/2)
50 The triangular factor U or L from the Cholesky factorization A
51 = U**T*U or A = L*L**T, as computed by DPPTRF/ZPPTRF, packed
52 columnwise in a linear array in the same format as A (see AP).
53
54 B (input) DOUBLE PRECISION array, dimension (LDB,NRHS)
55 The right hand side matrix B.
56
57 LDB (input) INTEGER
58 The leading dimension of the array B. LDB >= max(1,N).
59
60 X (input/output) DOUBLE PRECISION array, dimension (LDX,NRHS)
61 On entry, the solution matrix X, as computed by DPPTRS. On
62 exit, the improved solution matrix X.
63
64 LDX (input) INTEGER
65 The leading dimension of the array X. LDX >= max(1,N).
66
67 FERR (output) DOUBLE PRECISION array, dimension (NRHS)
68 The estimated forward error bound for each solution vector X(j)
69 (the j-th column of the solution matrix X). If XTRUE is the
70 true solution corresponding to X(j), FERR(j) is an estimated
71 upper bound for the magnitude of the largest element in (X(j) -
72 XTRUE) divided by the magnitude of the largest element in X(j).
73 The estimate is as reliable as the estimate for RCOND, and is
74 almost always a slight overestimate of the true error.
75
76 BERR (output) DOUBLE PRECISION array, dimension (NRHS)
77 The componentwise relative backward error of each solution vec‐
78 tor X(j) (i.e., the smallest relative change in any element of
79 A or B that makes X(j) an exact solution).
80
81 WORK (workspace) DOUBLE PRECISION array, dimension (3*N)
82
83 IWORK (workspace) INTEGER array, dimension (N)
84
85 INFO (output) INTEGER
86 = 0: successful exit
87 < 0: if INFO = -i, the i-th argument had an illegal value
88
90 ITMAX is the maximum number of steps of iterative refinement.
91
92
93
94 LAPACK routine (version 3.1) November 2006 DPPRFS(1)