110 SUBROUTINE zget03( N, A, LDA, AINV, LDAINV, WORK, LDWORK, RWORK,
119 INTEGER LDA, LDAINV, LDWORK, N
120 DOUBLE PRECISION RCOND, RESID
123 DOUBLE PRECISION RWORK( * )
124 COMPLEX*16 A( lda, * ), AINV( ldainv, * ),
131 DOUBLE PRECISION ZERO, ONE
132 parameter ( zero = 0.0d+0, one = 1.0d+0 )
133 COMPLEX*16 CZERO, CONE
134 parameter ( czero = ( 0.0d+0, 0.0d+0 ),
135 $ cone = ( 1.0d+0, 0.0d+0 ) )
139 DOUBLE PRECISION AINVNM, ANORM, EPS
142 DOUBLE PRECISION DLAMCH, ZLANGE
143 EXTERNAL dlamch, zlange
163 eps = dlamch(
'Epsilon' )
164 anorm = zlange(
'1', n, n, a, lda, rwork )
165 ainvnm = zlange(
'1', n, n, ainv, ldainv, rwork )
166 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
171 rcond = ( one / anorm ) / ainvnm
175 CALL zgemm(
'No transpose',
'No transpose', n, n, n, -cone, ainv,
176 $ ldainv, a, lda, czero, work, ldwork )
178 work( i, i ) = cone + work( i, i )
183 resid = zlange(
'1', n, n, work, ldwork, rwork )
185 resid = ( ( resid*rcond ) / eps ) / dble( n )
subroutine zgemm(TRANSA, TRANSB, M, N, K, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
ZGEMM
subroutine zget03(N, A, LDA, AINV, LDAINV, WORK, LDWORK, RWORK, RCOND, RESID)
ZGET03