133 SUBROUTINE dget08( TRANS, M, N, NRHS, A, LDA, X, LDX, B, LDB,
143 INTEGER LDA, LDB, LDX, M, N, NRHS
144 DOUBLE PRECISION RESID
147 DOUBLE PRECISION A( lda, * ), B( ldb, * ), RWORK( * ),
154 DOUBLE PRECISION ZERO, ONE
155 parameter ( zero = 0.0d+0, one = 1.0d+0 )
159 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
164 DOUBLE PRECISION DLAMCH, DLANGE
165 EXTERNAL lsame, idamax, dlamch, dlange
177 IF( m.LE.0 .OR. n.LE.0 .OR. nrhs.EQ.0 )
THEN
182 IF( lsame( trans,
'T' ) .OR. lsame( trans,
'C' ) )
THEN
192 eps = dlamch(
'Epsilon' )
193 anorm = dlange(
'I', n1, n2, a, lda, rwork )
194 IF( anorm.LE.zero )
THEN
201 CALL dgemm( trans,
'No transpose', n1, nrhs, n2, -one, a, lda, x,
209 bnorm = abs(b(idamax( n1, b( 1, j ), 1 ),j))
210 xnorm = abs(x(idamax( n2, x( 1, j ), 1 ),j))
211 IF( xnorm.LE.zero )
THEN
214 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