127 SUBROUTINE dpot02( UPLO, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK,
137 INTEGER lda, ldb, ldx, n, nrhs
138 DOUBLE PRECISION resid
141 DOUBLE PRECISION a( lda, * ), b( ldb, * ), rwork( * ),
148 DOUBLE PRECISION zero, one
149 parameter( zero = 0.0d+0, one = 1.0d+0 )
153 DOUBLE PRECISION anorm, bnorm, eps, xnorm
169 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
177 anorm =
dlansy(
'1', uplo, n, a, lda, rwork )
178 IF( anorm.LE.zero )
THEN
185 CALL
dsymm(
'Left', uplo, n, nrhs, -one, a, lda, x, ldx, one, b,
193 bnorm =
dasum( n, b( 1, j ), 1 )
194 xnorm =
dasum( n, x( 1, j ), 1 )
195 IF( xnorm.LE.zero )
THEN
198 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )