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
158 DOUBLE PRECISION DLAMCH, DLANSY
159 EXTERNAL idamax, dlamch, dlansy
171 IF( n.LE.0 .OR. nrhs.EQ.0 )
THEN
178 eps = dlamch(
'Epsilon' )
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 )
subroutine dsymm(SIDE, UPLO, M, N, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
DSYMM
subroutine dpot06(UPLO, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK, RESID)
DPOT06