133 SUBROUTINE dget02( 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
176 IF( m.LE.0 .OR. n.LE.0 .OR. nrhs.EQ.0 )
THEN
181 IF(
lsame( trans,
'T' ) .OR.
lsame( trans,
'C' ) )
THEN
192 anorm =
dlange(
'1', n1, n2, a, lda, rwork )
193 IF( anorm.LE.zero )
THEN
200 CALL
dgemm( trans,
'No transpose', n1, nrhs, n2, -one, a, lda, x,
208 bnorm =
dasum( n1, b( 1, j ), 1 )
209 xnorm =
dasum( n2, x( 1, j ), 1 )
210 IF( xnorm.LE.zero )
THEN
213 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )