126 SUBROUTINE csyt03( UPLO, N, A, LDA, AINV, LDAINV, WORK, LDWORK,
127 $ rwork, rcond, resid )
136 INTEGER LDA, LDAINV, LDWORK, N
141 COMPLEX A( lda, * ), AINV( ldainv, * ),
150 parameter ( zero = 0.0e+0, one = 1.0e+0 )
152 parameter ( czero = ( 0.0e+0, 0.0e+0 ),
153 $ cone = ( 1.0e+0, 0.0e+0 ) )
157 REAL AINVNM, ANORM, EPS
161 REAL CLANGE, CLANSY, SLAMCH
162 EXTERNAL lsame, clange, clansy, slamch
182 eps = slamch(
'Epsilon' )
183 anorm = clansy(
'1', uplo, n, a, lda, rwork )
184 ainvnm = clansy(
'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 csymm(
'Left', uplo, n, n, -cone, a, lda, ainv, ldainv,
209 $ czero, work, ldwork )
214 work( i, i ) = work( i, i ) + cone
219 resid = clange(
'1', n, n, work, ldwork, rwork )
221 resid = ( ( resid*rcond )/eps ) /
REAL( n )
subroutine csymm(SIDE, UPLO, M, N, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
CSYMM
subroutine csyt03(UPLO, N, A, LDA, AINV, LDAINV, WORK, LDWORK, RWORK, RCOND, RESID)
CSYT03