123 SUBROUTINE ztrt01( UPLO, DIAG, N, A, LDA, AINV, LDAINV, RCOND,
132 INTEGER LDA, LDAINV, N
133 DOUBLE PRECISION RCOND, RESID
136 DOUBLE PRECISION RWORK( * )
137 COMPLEX*16 A( LDA, * ), AINV( LDAINV, * )
143 DOUBLE PRECISION ZERO, ONE
144 parameter( zero = 0.0d+0, one = 1.0d+0 )
148 DOUBLE PRECISION AINVNM, ANORM, EPS
152 DOUBLE PRECISION DLAMCH, ZLANTR
153 EXTERNAL lsame, dlamch, zlantr
173 eps = dlamch(
'Epsilon' )
174 anorm = zlantr(
'1', uplo, diag, n, n, a, lda, rwork )
175 ainvnm = zlantr(
'1', uplo, diag, n, n, ainv, ldainv, rwork )
176 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
181 rcond = ( one / anorm ) / ainvnm
185 IF( lsame( diag,
'U' ) )
THEN
193 IF( lsame( uplo,
'U' ) )
THEN
195 CALL ztrmv(
'Upper',
'No transpose', diag, j, a, lda,
200 CALL ztrmv(
'Lower',
'No transpose', diag, n-j+1, a( j, j ),
201 $ lda, ainv( j, j ), 1 )
208 ainv( j, j ) = ainv( j, j ) - one
213 resid = zlantr(
'1', uplo,
'Non-unit', n, n, ainv, ldainv, rwork )
215 resid = ( ( resid*rcond ) / dble( n ) ) / eps
subroutine ztrmv(uplo, trans, diag, n, a, lda, x, incx)
ZTRMV
subroutine ztrt01(uplo, diag, n, a, lda, ainv, ldainv, rcond, rwork, resid)
ZTRT01