132 SUBROUTINE cget02( TRANS, M, N, NRHS, A, LDA, X, LDX, B, LDB,
141 INTEGER LDA, LDB, LDX, M, N, NRHS
146 COMPLEX A( LDA, * ), B( LDB, * ), X( LDX, * )
153 parameter( zero = 0.0e+0, one = 1.0e+0 )
155 parameter( cone = ( 1.0e+0, 0.0e+0 ) )
159 REAL ANORM, BNORM, EPS, XNORM
163 REAL CLANGE, SCASUM, SLAMCH
164 EXTERNAL lsame, clange, scasum, slamch
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 IF( lsame( trans,
'N' ) )
THEN
193 anorm = clange(
'1', m, n, a, lda, rwork )
195 anorm = clange(
'I', m, n, a, lda, rwork )
197 IF( anorm.LE.zero )
THEN
204 CALL cgemm( trans,
'No transpose', n1, nrhs, n2, -cone, a, lda, x,
205 $ ldx, cone, b, ldb )
212 bnorm = scasum( n1, b( 1, j ), 1 )
213 xnorm = scasum( n2, x( 1, j ), 1 )
214 IF( xnorm.LE.zero )
THEN
217 resid = max( resid, ( ( bnorm/anorm )/xnorm )/eps )
subroutine cget02(trans, m, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
CGET02
subroutine cgemm(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc)
CGEMM