108 SUBROUTINE zget03( N, A, LDA, AINV, LDAINV, WORK, LDWORK, RWORK,
116 INTEGER LDA, LDAINV, LDWORK, N
117 DOUBLE PRECISION RCOND, RESID
120 DOUBLE PRECISION RWORK( * )
121 COMPLEX*16 A( LDA, * ), AINV( LDAINV, * ),
128 DOUBLE PRECISION ZERO, ONE
129 parameter( zero = 0.0d+0, one = 1.0d+0 )
130 COMPLEX*16 CZERO, CONE
131 parameter( czero = ( 0.0d+0, 0.0d+0 ),
132 $ cone = ( 1.0d+0, 0.0d+0 ) )
136 DOUBLE PRECISION AINVNM, ANORM, EPS
139 DOUBLE PRECISION DLAMCH, ZLANGE
140 EXTERNAL dlamch, zlange
160 eps = dlamch(
'Epsilon' )
161 anorm = zlange(
'1', n, n, a, lda, rwork )
162 ainvnm = zlange(
'1', n, n, ainv, ldainv, rwork )
163 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
168 rcond = ( one / anorm ) / ainvnm
172 CALL zgemm(
'No transpose',
'No transpose', n, n, n, -cone, ainv,
173 $ ldainv, a, lda, czero, work, ldwork )
175 work( i, i ) = cone + work( i, i )
180 resid = zlange(
'1', n, n, work, ldwork, rwork )
182 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