98 SUBROUTINE cget10( M, N, A, LDA, B, LDB, WORK, RWORK, RESULT )
105 INTEGER LDA, LDB, M, N
110 COMPLEX A( LDA, * ), B( LDB, * ), WORK( * )
117 parameter( one = 1.0e+0, zero = 0.0e+0 )
121 REAL ANORM, EPS, UNFL, WNORM
124 REAL SCASUM, SLAMCH, CLANGE
125 EXTERNAL scasum, slamch, clange
131 INTRINSIC max, min, real
137 IF( m.LE.0 .OR. n.LE.0 )
THEN
142 unfl = slamch(
'Safe minimum' )
143 eps = slamch(
'Precision' )
147 CALL ccopy( m, a( 1, j ), 1, work, 1 )
148 CALL caxpy( m, cmplx( -one ), b( 1, j ), 1, work, 1 )
149 wnorm = max( wnorm, scasum( n, work, 1 ) )
152 anorm = max( clange(
'1', m, n, a, lda, rwork ), unfl )
154 IF( anorm.GT.wnorm )
THEN
155 result = ( wnorm / anorm ) / ( m*eps )
157 IF( anorm.LT.one )
THEN
158 result = ( min( wnorm, m*anorm ) / anorm ) / ( m*eps )
160 result = min( wnorm / anorm, real( m ) ) / ( m*eps )
subroutine cget10(m, n, a, lda, b, ldb, work, rwork, result)
CGET10
subroutine caxpy(n, ca, cx, incx, cy, incy)
CAXPY
subroutine ccopy(n, cx, incx, cy, incy)
CCOPY