131 SUBROUTINE dget08( TRANS, M, N, NRHS, A, LDA, X, LDX, B, LDB,
140 INTEGER LDA, LDB, LDX, M, N, NRHS
141 DOUBLE PRECISION RESID
144 DOUBLE PRECISION A( LDA, * ), B( LDB, * ), RWORK( * ),
151 DOUBLE PRECISION ZERO, ONE
152 parameter( zero = 0.0d+0, one = 1.0d+0 )
156 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
161 DOUBLE PRECISION DLAMCH, DLANGE
162 EXTERNAL lsame, idamax, dlamch, dlange
174 IF( m.LE.0 .OR. n.LE.0 .OR. nrhs.EQ.0 )
THEN
179 IF( lsame( trans,
'T' ) .OR. lsame( trans,
'C' ) )
THEN
189 eps = dlamch(
'Epsilon' )
190 anorm = dlange(
'I', n1, n2, a, lda, rwork )
191 IF( anorm.LE.zero )
THEN
198 CALL dgemm( trans,
'No transpose', n1, nrhs, n2, -one, a, lda, x,
206 bnorm = abs(b(idamax( n1, b( 1, j ), 1 ),j))
207 xnorm = abs(x(idamax( n2, x( 1, j ), 1 ),j))
208 IF( xnorm.LE.zero )
THEN
211 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine dget08(trans, m, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
DGET08
subroutine dgemm(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc)
DGEMM