126 SUBROUTINE zsyt03( UPLO, N, A, LDA, AINV, LDAINV, WORK, LDWORK,
127 $ rwork, rcond, resid )
136 INTEGER LDA, LDAINV, LDWORK, N
137 DOUBLE PRECISION RCOND, RESID
140 DOUBLE PRECISION RWORK( * )
141 COMPLEX*16 A( lda, * ), AINV( ldainv, * ),
149 DOUBLE PRECISION ZERO, ONE
150 parameter ( zero = 0.0d+0, one = 1.0d+0 )
151 COMPLEX*16 CZERO, CONE
152 parameter ( czero = ( 0.0d+0, 0.0d+0 ),
153 $ cone = ( 1.0d+0, 0.0d+0 ) )
157 DOUBLE PRECISION AINVNM, ANORM, EPS
161 DOUBLE PRECISION DLAMCH, ZLANGE, ZLANSY
162 EXTERNAL lsame, dlamch, zlange, zlansy
182 eps = dlamch(
'Epsilon' )
183 anorm = zlansy(
'1', uplo, n, a, lda, rwork )
184 ainvnm = zlansy(
'1', uplo, n, ainv, ldainv, rwork )
185 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
190 rcond = ( one / anorm ) / ainvnm
195 IF( lsame( uplo,
'U' ) )
THEN
198 ainv( j, i ) = ainv( i, j )
204 ainv( j, i ) = ainv( i, j )
208 CALL zsymm(
'Left', uplo, n, n, -cone, a, lda, ainv, ldainv,
209 $ czero, work, ldwork )
214 work( i, i ) = work( i, i ) + cone
219 resid = zlange(
'1', n, n, work, ldwork, rwork )
221 resid = ( ( resid*rcond ) / eps ) / dble( n )
subroutine zsymm(SIDE, UPLO, M, N, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
ZSYMM
subroutine zsyt03(UPLO, N, A, LDA, AINV, LDAINV, WORK, LDWORK, RWORK, RCOND, RESID)
ZSYT03