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