124 SUBROUTINE zsyt03( UPLO, N, A, LDA, AINV, LDAINV, WORK, LDWORK,
125 $ RWORK, RCOND, RESID )
133 INTEGER LDA, LDAINV, LDWORK, N
134 DOUBLE PRECISION RCOND, RESID
137 DOUBLE PRECISION RWORK( * )
138 COMPLEX*16 A( LDA, * ), AINV( LDAINV, * ),
146 DOUBLE PRECISION ZERO, ONE
147 parameter( zero = 0.0d+0, one = 1.0d+0 )
148 COMPLEX*16 CZERO, CONE
149 parameter( czero = ( 0.0d+0, 0.0d+0 ),
150 $ cone = ( 1.0d+0, 0.0d+0 ) )
154 DOUBLE PRECISION AINVNM, ANORM, EPS
158 DOUBLE PRECISION DLAMCH, ZLANGE, ZLANSY
159 EXTERNAL lsame, dlamch, zlange, zlansy
179 eps = dlamch(
'Epsilon' )
180 anorm = zlansy(
'1', uplo, n, a, lda, rwork )
181 ainvnm = zlansy(
'1', uplo, n, ainv, ldainv, rwork )
182 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
187 rcond = ( one / anorm ) / ainvnm
192 IF( lsame( uplo,
'U' ) )
THEN
195 ainv( j, i ) = ainv( i, j )
201 ainv( j, i ) = ainv( i, j )
205 CALL zsymm(
'Left', uplo, n, n, -cone, a, lda, ainv, ldainv,
206 $ czero, work, ldwork )
211 work( i, i ) = work( i, i ) + cone
216 resid = zlange(
'1', n, n, work, ldwork, rwork )
218 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