103 SUBROUTINE dptt02( N, NRHS, D, E, X, LDX, B, LDB, RESID )
110 INTEGER LDB, LDX, N, NRHS
111 DOUBLE PRECISION RESID
114 DOUBLE PRECISION B( LDB, * ), D( * ), E( * ), X( LDX, * )
120 DOUBLE PRECISION ONE, ZERO
121 parameter( one = 1.0d+0, zero = 0.0d+0 )
125 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
128 DOUBLE PRECISION DASUM, DLAMCH, DLANST
129 EXTERNAL dasum, dlamch, dlanst
148 anorm = dlanst(
'1', n, d, e )
152 eps = dlamch(
'Epsilon' )
153 IF( anorm.LE.zero )
THEN
160 CALL dlaptm( n, nrhs, -one, d, e, x, ldx, one, b, ldb )
167 bnorm = dasum( n, b( 1, j ), 1 )
168 xnorm = dasum( n, x( 1, j ), 1 )
169 IF( xnorm.LE.zero )
THEN
172 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine dlaptm(n, nrhs, alpha, d, e, x, ldx, beta, b, ldb)
DLAPTM
subroutine dptt02(n, nrhs, d, e, x, ldx, b, ldb, resid)
DPTT02