133 SUBROUTINE sget02( TRANS, M, N, NRHS, A, LDA, X, LDX, B, LDB,
143 INTEGER LDA, LDB, LDX, M, N, NRHS
147 REAL A( lda, * ), B( ldb, * ), RWORK( * ),
155 parameter ( zero = 0.0e+0, one = 1.0e+0 )
159 REAL ANORM, BNORM, EPS, XNORM
163 REAL SASUM, SLAMCH, SLANGE
164 EXTERNAL lsame, sasum, slamch, slange
176 IF( m.LE.0 .OR. n.LE.0 .OR. nrhs.EQ.0 )
THEN
181 IF( lsame( trans,
'T' ) .OR. lsame( trans,
'C' ) )
THEN
191 eps = slamch(
'Epsilon' )
192 anorm = slange(
'1', m, n, a, lda, rwork )
193 IF( anorm.LE.zero )
THEN
200 CALL sgemm( trans,
'No transpose', n1, nrhs, n2, -one, a, lda, x,
208 bnorm = sasum( n1, b( 1, j ), 1 )
209 xnorm = sasum( n2, x( 1, j ), 1 )
210 IF( xnorm.LE.zero )
THEN
213 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine sget02(TRANS, M, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK, RESID)
SGET02
subroutine sgemm(TRANSA, TRANSB, M, N, K, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
SGEMM