1DTPRFS(1) LAPACK routine (version 3.2) DTPRFS(1)
2
3
4
6 DTPRFS - provides error bounds and backward error estimates for the
7 solution to a system of linear equations with a triangular packed coef‐
8 ficient matrix
9
11 SUBROUTINE DTPRFS( UPLO, TRANS, DIAG, N, NRHS, AP, B, LDB, X, LDX,
12 FERR, BERR, WORK, IWORK, INFO )
13
14 CHARACTER DIAG, TRANS, UPLO
15
16 INTEGER INFO, LDB, LDX, N, NRHS
17
18 INTEGER IWORK( * )
19
20 DOUBLE PRECISION AP( * ), B( LDB, * ), BERR( * ), FERR( *
21 ), WORK( * ), X( LDX, * )
22
24 DTPRFS provides error bounds and backward error estimates for the solu‐
25 tion to a system of linear equations with a triangular packed coeffi‐
26 cient matrix. The solution matrix X must be computed by DTPTRS or some
27 other means before entering this routine. DTPRFS does not do iterative
28 refinement because doing so cannot improve the backward error.
29
31 UPLO (input) CHARACTER*1
32 = 'U': A is upper triangular;
33 = 'L': A is lower triangular.
34
35 TRANS (input) CHARACTER*1
36 Specifies the form of the system of equations:
37 = 'N': A * X = B (No transpose)
38 = 'T': A**T * X = B (Transpose)
39 = 'C': A**H * X = B (Conjugate transpose = Transpose)
40
41 DIAG (input) CHARACTER*1
42 = 'N': A is non-unit triangular;
43 = 'U': A is unit triangular.
44
45 N (input) INTEGER
46 The order of the matrix A. N >= 0.
47
48 NRHS (input) INTEGER
49 The number of right hand sides, i.e., the number of columns of
50 the matrices B and X. NRHS >= 0.
51
52 AP (input) DOUBLE PRECISION array, dimension (N*(N+1)/2)
53 The upper or lower triangular matrix A, packed columnwise in a
54 linear array. The j-th column of A is stored in the array AP
55 as follows: if UPLO = 'U', AP(i + (j-1)*j/2) = A(i,j) for
56 1<=i<=j; if UPLO = 'L', AP(i + (j-1)*(2*n-j)/2) = A(i,j) for
57 j<=i<=n. If DIAG = 'U', the diagonal elements of A are not
58 referenced and are assumed to be 1.
59
60 B (input) DOUBLE PRECISION array, dimension (LDB,NRHS)
61 The right hand side matrix B.
62
63 LDB (input) INTEGER
64 The leading dimension of the array B. LDB >= max(1,N).
65
66 X (input) DOUBLE PRECISION array, dimension (LDX,NRHS)
67 The solution matrix X.
68
69 LDX (input) INTEGER
70 The leading dimension of the array X. LDX >= max(1,N).
71
72 FERR (output) DOUBLE PRECISION array, dimension (NRHS)
73 The estimated forward error bound for each solution vector X(j)
74 (the j-th column of the solution matrix X). If XTRUE is the
75 true solution corresponding to X(j), FERR(j) is an estimated
76 upper bound for the magnitude of the largest element in (X(j) -
77 XTRUE) divided by the magnitude of the largest element in X(j).
78 The estimate is as reliable as the estimate for RCOND, and is
79 almost always a slight overestimate of the true error.
80
81 BERR (output) DOUBLE PRECISION array, dimension (NRHS)
82 The componentwise relative backward error of each solution vec‐
83 tor X(j) (i.e., the smallest relative change in any element of
84 A or B that makes X(j) an exact solution).
85
86 WORK (workspace) DOUBLE PRECISION array, dimension (3*N)
87
88 IWORK (workspace) INTEGER array, dimension (N)
89
90 INFO (output) INTEGER
91 = 0: successful exit
92 < 0: if INFO = -i, the i-th argument had an illegal value
93
94
95
96 LAPACK routine (version 3.2) November 2008 DTPRFS(1)