133 SUBROUTINE sget02( TRANS, M, N, NRHS, A, LDA, X, LDX, B, LDB,
142 INTEGER LDA, LDB, LDX, M, N, NRHS
146 REAL A( LDA, * ), B( LDB, * ), RWORK( * ),
154 parameter( zero = 0.0e+0, one = 1.0e+0 )
158 REAL ANORM, BNORM, EPS, XNORM
162 REAL SASUM, SLAMCH, SLANGE
163 EXTERNAL lsame, sasum, slamch, slange
175 IF( m.LE.0 .OR. n.LE.0 .OR. nrhs.EQ.0 )
THEN
180 IF( lsame( trans,
'T' ) .OR. lsame( trans,
'C' ) )
THEN
190 eps = slamch(
'Epsilon' )
191 IF( lsame( trans,
'N' ) )
THEN
192 anorm = slange(
'1', m, n, a, lda, rwork )
194 anorm = slange(
'I', m, n, a, lda, rwork )
196 IF( anorm.LE.zero )
THEN
203 CALL sgemm( trans,
'No transpose', n1, nrhs, n2, -one, a, lda, x,
211 bnorm = sasum( n1, b( 1, j ), 1 )
212 xnorm = sasum( n2, x( 1, j ), 1 )
213 IF( xnorm.LE.zero )
THEN
216 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