1SGECON(1) LAPACK routine (version 3.1) SGECON(1)
2
3
4
6 SGECON - the reciprocal of the condition number of a general real
7 matrix A, in either the 1-norm or the infinity-norm, using the LU fac‐
8 torization computed by SGETRF
9
11 SUBROUTINE SGECON( NORM, N, A, LDA, ANORM, RCOND, WORK, IWORK, INFO )
12
13 CHARACTER NORM
14
15 INTEGER INFO, LDA, N
16
17 REAL ANORM, RCOND
18
19 INTEGER IWORK( * )
20
21 REAL A( LDA, * ), WORK( * )
22
24 SGECON estimates the reciprocal of the condition number of a general
25 real matrix A, in either the 1-norm or the infinity-norm, using the LU
26 factorization computed by SGETRF.
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 A (input) REAL array, dimension (LDA,N)
44 The factors L and U from the factorization A = P*L*U as com‐
45 puted by SGETRF.
46
47 LDA (input) INTEGER
48 The leading dimension of the array A. LDA >= max(1,N).
49
50 ANORM (input) REAL
51 If NORM = '1' or 'O', the 1-norm of the original matrix A. If
52 NORM = 'I', the infinity-norm of the original matrix A.
53
54 RCOND (output) REAL
55 The reciprocal of the condition number of the matrix A, com‐
56 puted as RCOND = 1/(norm(A) * norm(inv(A))).
57
58 WORK (workspace) REAL array, dimension (4*N)
59
60 IWORK (workspace) INTEGER array, dimension (N)
61
62 INFO (output) INTEGER
63 = 0: successful exit
64 < 0: if INFO = -i, the i-th argument had an illegal value
65
66
67
68 LAPACK routine (version 3.1) November 2006 SGECON(1)