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
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 )