109 SUBROUTINE stpt01( UPLO, DIAG, N, AP, AINVP, RCOND, WORK, RESID )
122 REAL AINVP( * ), AP( * ), WORK( * )
129 parameter ( zero = 0.0e+0, one = 1.0e+0 )
134 REAL AINVNM, ANORM, EPS
139 EXTERNAL lsame, slamch, slantp
159 eps = slamch(
'Epsilon' )
160 anorm = slantp(
'1', uplo, diag, n, ap, work )
161 ainvnm = slantp(
'1', uplo, diag, n, ainvp, work )
162 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
167 rcond = ( one / anorm ) / ainvnm
171 unitd = lsame( diag,
'U' )
172 IF( lsame( uplo,
'U' ) )
THEN
176 $ ainvp( jc+j-1 ) = one
180 CALL stpmv(
'Upper',
'No transpose', diag, j, ap,
185 ainvp( jc+j-1 ) = ainvp( jc+j-1 ) - one
196 CALL stpmv(
'Lower',
'No transpose', diag, n-j+1, ap( jc ),
201 ainvp( jc ) = ainvp( jc ) - one
208 resid = slantp(
'1', uplo,
'Non-unit', n, ainvp, work )
210 resid = ( ( resid*rcond ) /
REAL( N ) ) / eps
subroutine stpt01(UPLO, DIAG, N, AP, AINVP, RCOND, WORK, RESID)
STPT01
subroutine stpmv(UPLO, TRANS, DIAG, N, AP, X, INCX)
STPMV