127 SUBROUTINE dpot06( UPLO, N, NRHS, A, LDA, X, LDX, B, LDB,
137 INTEGER lda, ldb, ldx, n, nrhs
138 DOUBLE PRECISION resid
141 DOUBLE PRECISION a( lda, * ), b( ldb, * ), rwork( * ),
148 DOUBLE PRECISION zero, one, negone
149 parameter( zero = 0.0d+0, one = 1.0d+0 )
150 parameter( negone = -1.0d+0 )
154 DOUBLE PRECISION anorm, bnorm, eps, xnorm
171 IF( n.LE.0 .OR. nrhs.EQ.0 )
THEN
179 anorm =
dlansy(
'I', uplo, n, a, lda, rwork )
180 IF( anorm.LE.zero )
THEN
188 CALL
dsymm(
'Left', uplo, n, nrhs, negone, a, lda, x,
196 bnorm = abs(b(
idamax( n, b( 1, j ), 1 ),j))
197 xnorm = abs(x(
idamax( n, x( 1, j ), 1 ),j))
198 IF( xnorm.LE.zero )
THEN
201 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )