110 SUBROUTINE ztpt01( UPLO, DIAG, N, AP, AINVP, RCOND, RWORK, RESID )
120 DOUBLE PRECISION RCOND, RESID
123 DOUBLE PRECISION RWORK( * )
124 COMPLEX*16 AINVP( * ), AP( * )
130 DOUBLE PRECISION ZERO, ONE
131 parameter ( zero = 0.0d+0, one = 1.0d+0 )
136 DOUBLE PRECISION AINVNM, ANORM, EPS
140 DOUBLE PRECISION DLAMCH, ZLANTP
141 EXTERNAL lsame, dlamch, zlantp
161 eps = dlamch(
'Epsilon' )
162 anorm = zlantp(
'1', uplo, diag, n, ap, rwork )
163 ainvnm = zlantp(
'1', uplo, diag, n, ainvp, rwork )
164 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
169 rcond = ( one / anorm ) / ainvnm
173 unitd = lsame( diag,
'U' )
174 IF( lsame( uplo,
'U' ) )
THEN
178 $ ainvp( jc+j-1 ) = one
182 CALL ztpmv(
'Upper',
'No transpose', diag, j, ap,
187 ainvp( jc+j-1 ) = ainvp( jc+j-1 ) - one
198 CALL ztpmv(
'Lower',
'No transpose', diag, n-j+1, ap( jc ),
203 ainvp( jc ) = ainvp( jc ) - one
210 resid = zlantp(
'1', uplo,
'Non-unit', n, ainvp, rwork )
212 resid = ( ( resid*rcond ) / dble( n ) ) / eps
subroutine ztpmv(UPLO, TRANS, DIAG, N, AP, X, INCX)
ZTPMV
subroutine ztpt01(UPLO, DIAG, N, AP, AINVP, RCOND, RWORK, RESID)
ZTPT01