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
156 DOUBLE PRECISION DASUM, DLAMCH, DLANSY
157 EXTERNAL dasum, dlamch, dlansy
169 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
176 eps = dlamch(
'Epsilon' )
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 )
subroutine dsymm(SIDE, UPLO, M, N, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
DSYMM
subroutine dpot02(UPLO, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK, RESID)
DPOT02