125 SUBROUTINE dpot02( UPLO, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK,
134 INTEGER LDA, LDB, LDX, N, NRHS
135 DOUBLE PRECISION RESID
138 DOUBLE PRECISION A( LDA, * ), B( LDB, * ), RWORK( * ),
145 DOUBLE PRECISION ZERO, ONE
146 parameter( zero = 0.0d+0, one = 1.0d+0 )
150 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
153 DOUBLE PRECISION DASUM, DLAMCH, DLANSY
154 EXTERNAL dasum, dlamch, dlansy
166 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
173 eps = dlamch(
'Epsilon' )
174 anorm = dlansy(
'1', uplo, n, a, lda, rwork )
175 IF( anorm.LE.zero )
THEN
182 CALL dsymm(
'Left', uplo, n, nrhs, -one, a, lda, x, ldx, one, b,
190 bnorm = dasum( n, b( 1, j ), 1 )
191 xnorm = dasum( n, x( 1, j ), 1 )
192 IF( xnorm.LE.zero )
THEN
195 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine dpot02(uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
DPOT02
subroutine dsymm(side, uplo, m, n, alpha, a, lda, b, ldb, beta, c, ldc)
DSYMM