1SGECON(1) LAPACK routine (version 3.2) SGECON(1)
2
3
4
6 SGECON - estimates the reciprocal of the condition number of a general
7 real matrix A, in either the 1-norm or the infinity-norm, using the LU
8 factorization 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. An estimate is obtained for
27 norm(inv(A)), and the reciprocal of the condition number is computed as
28 RCOND = 1 / ( norm(A) * norm(inv(A)) ).
29
31 NORM (input) CHARACTER*1
32 Specifies whether the 1-norm condition number or the infinity-
33 norm condition number is required:
34 = '1' or 'O': 1-norm;
35 = 'I': Infinity-norm.
36
37 N (input) INTEGER
38 The order of the matrix A. N >= 0.
39
40 A (input) REAL array, dimension (LDA,N)
41 The factors L and U from the factorization A = P*L*U as com‐
42 puted by SGETRF.
43
44 LDA (input) INTEGER
45 The leading dimension of the array A. LDA >= max(1,N).
46
47 ANORM (input) REAL
48 If NORM = '1' or 'O', the 1-norm of the original matrix A. If
49 NORM = 'I', the infinity-norm of the original matrix A.
50
51 RCOND (output) REAL
52 The reciprocal of the condition number of the matrix A, com‐
53 puted as RCOND = 1/(norm(A) * norm(inv(A))).
54
55 WORK (workspace) REAL array, dimension (4*N)
56
57 IWORK (workspace) INTEGER array, dimension (N)
58
59 INFO (output) INTEGER
60 = 0: successful exit
61 < 0: if INFO = -i, the i-th argument had an illegal value
62
63
64
65 LAPACK routine (version 3.2) November 2008 SGECON(1)