SUBROUTINE SGECON( NORM, N, A, LDA, ANORM, RCOND, WORK, WORK2, INFO) CHARACTER * 1 NORM INTEGER N, LDA, INFO INTEGER WORK2(*) REAL ANORM, RCOND REAL A(LDA,*), WORK(*) SUBROUTINE SGECON_64( NORM, N, A, LDA, ANORM, RCOND, WORK, WORK2, * INFO) CHARACTER * 1 NORM INTEGER*8 N, LDA, INFO INTEGER*8 WORK2(*) REAL ANORM, RCOND REAL A(LDA,*), WORK(*)
SUBROUTINE GECON( NORM, [N], A, [LDA], ANORM, RCOND, [WORK], [WORK2], * [INFO]) CHARACTER(LEN=1) :: NORM INTEGER :: N, LDA, INFO INTEGER, DIMENSION(:) :: WORK2 REAL :: ANORM, RCOND REAL, DIMENSION(:) :: WORK REAL, DIMENSION(:,:) :: A SUBROUTINE GECON_64( NORM, [N], A, [LDA], ANORM, RCOND, [WORK], * [WORK2], [INFO]) CHARACTER(LEN=1) :: NORM INTEGER(8) :: N, LDA, INFO INTEGER(8), DIMENSION(:) :: WORK2 REAL :: ANORM, RCOND REAL, DIMENSION(:) :: WORK REAL, DIMENSION(:,:) :: A
void sgecon(char norm, int n, float *a, int lda, float anorm, float *rcond, int *info);
void sgecon_64(char norm, long n, float *a, long lda, float anorm, float *rcond, long *info);
An estimate is obtained for norm(inv(A)), and the reciprocal of the condition number is computed as
RCOND = 1 / ( norm(A) * norm(inv(A)) ).