133 SUBROUTINE zget02( 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 RWORK( * )
148 COMPLEX*16 A( lda, * ), B( ldb, * ), X( ldx, * )
154 DOUBLE PRECISION ZERO, ONE
155 parameter ( zero = 0.0d+0, one = 1.0d+0 )
157 parameter ( cone = 1.0d+0 )
161 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
165 DOUBLE PRECISION DLAMCH, DZASUM, ZLANGE
166 EXTERNAL lsame, dlamch, dzasum, zlange
178 IF( m.LE.0 .OR. n.LE.0 .OR. nrhs.EQ.0 )
THEN
183 IF( lsame( trans,
'T' ) .OR. lsame( trans,
'C' ) )
THEN
193 eps = dlamch(
'Epsilon' )
194 anorm = zlange(
'1', n1, n2, a, lda, rwork )
195 IF( anorm.LE.zero )
THEN
202 CALL zgemm( trans,
'No transpose', n1, nrhs, n2, -cone, a, lda, x,
203 $ ldx, cone, b, ldb )
210 bnorm = dzasum( n1, b( 1, j ), 1 )
211 xnorm = dzasum( n2, x( 1, j ), 1 )
212 IF( xnorm.LE.zero )
THEN
215 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine zgemm(TRANSA, TRANSB, M, N, K, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
ZGEMM
subroutine zget02(TRANS, M, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK, RESID)
ZGET02