107 SUBROUTINE dget03( N, A, LDA, AINV, LDAINV, WORK, LDWORK, RWORK,
115 INTEGER LDA, LDAINV, LDWORK, N
116 DOUBLE PRECISION RCOND, RESID
119 DOUBLE PRECISION A( LDA, * ), AINV( LDAINV, * ), RWORK( * ),
126 DOUBLE PRECISION ZERO, ONE
127 parameter( zero = 0.0d+0, one = 1.0d+0 )
131 DOUBLE PRECISION AINVNM, ANORM, EPS
134 DOUBLE PRECISION DLAMCH, DLANGE
135 EXTERNAL dlamch, dlange
155 eps = dlamch(
'Epsilon' )
156 anorm = dlange(
'1', n, n, a, lda, rwork )
157 ainvnm = dlange(
'1', n, n, ainv, ldainv, rwork )
158 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
163 rcond = ( one / anorm ) / ainvnm
167 CALL dgemm(
'No transpose',
'No transpose', n, n, n, -one, ainv,
168 $ ldainv, a, lda, zero, work, ldwork )
170 work( i, i ) = one + work( i, i )
175 resid = dlange(
'1', n, n, work, ldwork, rwork )
177 resid = ( ( resid*rcond ) / eps ) / dble( n )
subroutine dget03(n, a, lda, ainv, ldainv, work, ldwork, rwork, rcond, resid)
DGET03
subroutine dgemm(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc)
DGEMM