105 SUBROUTINE dptt02( N, NRHS, D, E, X, LDX, B, LDB, RESID )
113 INTEGER LDB, LDX, N, NRHS
114 DOUBLE PRECISION RESID
117 DOUBLE PRECISION B( ldb, * ), D( * ), E( * ), X( ldx, * )
123 DOUBLE PRECISION ONE, ZERO
124 parameter ( one = 1.0d+0, zero = 0.0d+0 )
128 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
131 DOUBLE PRECISION DASUM, DLAMCH, DLANST
132 EXTERNAL dasum, dlamch, dlanst
151 anorm = dlanst(
'1', n, d, e )
155 eps = dlamch(
'Epsilon' )
156 IF( anorm.LE.zero )
THEN
163 CALL dlaptm( n, nrhs, -one, d, e, x, ldx, one, b, ldb )
170 bnorm = dasum( n, b( 1, j ), 1 )
171 xnorm = dasum( n, x( 1, j ), 1 )
172 IF( xnorm.LE.zero )
THEN
175 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine dptt02(N, NRHS, D, E, X, LDX, B, LDB, RESID)
DPTT02
subroutine dlaptm(N, NRHS, ALPHA, D, E, X, LDX, BETA, B, LDB)
DLAPTM