1SGBCON(1) LAPACK routine (version 3.1) SGBCON(1)
2
3
4
6 SGBCON - the reciprocal of the condition number of a real general band
7 matrix A, in either the 1-norm or the infinity-norm,
8
10 SUBROUTINE SGBCON( NORM, N, KL, KU, AB, LDAB, IPIV, ANORM, RCOND, WORK,
11 IWORK, INFO )
12
13 CHARACTER NORM
14
15 INTEGER INFO, KL, KU, LDAB, N
16
17 REAL ANORM, RCOND
18
19 INTEGER IPIV( * ), IWORK( * )
20
21 REAL AB( LDAB, * ), WORK( * )
22
24 SGBCON estimates the reciprocal of the condition number of a real gen‐
25 eral band matrix A, in either the 1-norm or the infinity-norm, using
26 the LU factorization computed by SGBTRF.
27
28 An estimate is obtained for norm(inv(A)), and the reciprocal of the
29 condition number is computed as
30 RCOND = 1 / ( norm(A) * norm(inv(A)) ).
31
32
34 NORM (input) CHARACTER*1
35 Specifies whether the 1-norm condition number or the infinity-
36 norm condition number is required:
37 = '1' or 'O': 1-norm;
38 = 'I': Infinity-norm.
39
40 N (input) INTEGER
41 The order of the matrix A. N >= 0.
42
43 KL (input) INTEGER
44 The number of subdiagonals within the band of A. KL >= 0.
45
46 KU (input) INTEGER
47 The number of superdiagonals within the band of A. KU >= 0.
48
49 AB (input) REAL array, dimension (LDAB,N)
50 Details of the LU factorization of the band matrix A, as com‐
51 puted by SGBTRF. U is stored as an upper triangular band
52 matrix with KL+KU superdiagonals in rows 1 to KL+KU+1, and the
53 multipliers used during the factorization are stored in rows
54 KL+KU+2 to 2*KL+KU+1.
55
56 LDAB (input) INTEGER
57 The leading dimension of the array AB. LDAB >= 2*KL+KU+1.
58
59 IPIV (input) INTEGER array, dimension (N)
60 The pivot indices; for 1 <= i <= N, row i of the matrix was
61 interchanged with row IPIV(i).
62
63 ANORM (input) REAL
64 If NORM = '1' or 'O', the 1-norm of the original matrix A. If
65 NORM = 'I', the infinity-norm of the original matrix A.
66
67 RCOND (output) REAL
68 The reciprocal of the condition number of the matrix A, com‐
69 puted as RCOND = 1/(norm(A) * norm(inv(A))).
70
71 WORK (workspace) REAL array, dimension (3*N)
72
73 IWORK (workspace) INTEGER array, dimension (N)
74
75 INFO (output) INTEGER
76 = 0: successful exit
77 < 0: if INFO = -i, the i-th argument had an illegal value
78
79
80
81 LAPACK routine (version 3.1) November 2006 SGBCON(1)