109 SUBROUTINE dget03( N, A, LDA, AINV, LDAINV, WORK, LDWORK, RWORK,
118 INTEGER LDA, LDAINV, LDWORK, N
119 DOUBLE PRECISION RCOND, RESID
122 DOUBLE PRECISION A( lda, * ), AINV( ldainv, * ), RWORK( * ),
129 DOUBLE PRECISION ZERO, ONE
130 parameter ( zero = 0.0d+0, one = 1.0d+0 )
134 DOUBLE PRECISION AINVNM, ANORM, EPS
137 DOUBLE PRECISION DLAMCH, DLANGE
138 EXTERNAL dlamch, dlange
158 eps = dlamch(
'Epsilon' )
159 anorm = dlange(
'1', n, n, a, lda, rwork )
160 ainvnm = dlange(
'1', n, n, ainv, ldainv, rwork )
161 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
166 rcond = ( one / anorm ) / ainvnm
170 CALL dgemm(
'No transpose',
'No transpose', n, n, n, -one, ainv,
171 $ ldainv, a, lda, zero, work, ldwork )
173 work( i, i ) = one + work( i, i )
178 resid = dlange(
'1', n, n, work, ldwork, rwork )
180 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