125 SUBROUTINE ztrt01( UPLO, DIAG, N, A, LDA, AINV, LDAINV, RCOND,
135 INTEGER LDA, LDAINV, N
136 DOUBLE PRECISION RCOND, RESID
139 DOUBLE PRECISION RWORK( * )
140 COMPLEX*16 A( lda, * ), AINV( ldainv, * )
146 DOUBLE PRECISION ZERO, ONE
147 parameter ( zero = 0.0d+0, one = 1.0d+0 )
151 DOUBLE PRECISION AINVNM, ANORM, EPS
155 DOUBLE PRECISION DLAMCH, ZLANTR
156 EXTERNAL lsame, dlamch, zlantr
176 eps = dlamch(
'Epsilon' )
177 anorm = zlantr(
'1', uplo, diag, n, n, a, lda, rwork )
178 ainvnm = zlantr(
'1', uplo, diag, n, n, ainv, ldainv, rwork )
179 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
184 rcond = ( one / anorm ) / ainvnm
188 IF( lsame( diag,
'U' ) )
THEN
196 IF( lsame( uplo,
'U' ) )
THEN
198 CALL ztrmv(
'Upper',
'No transpose', diag, j, a, lda,
203 CALL ztrmv(
'Lower',
'No transpose', diag, n-j+1, a( j, j ),
204 $ lda, ainv( j, j ), 1 )
211 ainv( j, j ) = ainv( j, j ) - one
216 resid = zlantr(
'1', uplo,
'Non-unit', n, n, ainv, ldainv, rwork )
218 resid = ( ( resid*rcond ) / dble( n ) ) / eps
subroutine ztrt01(UPLO, DIAG, N, A, LDA, AINV, LDAINV, RCOND, RWORK, RESID)
ZTRT01
subroutine ztrmv(UPLO, TRANS, DIAG, N, A, LDA, X, INCX)
ZTRMV