92 SUBROUTINE dget10( M, N, A, LDA, B, LDB, WORK, RESULT )
99 INTEGER LDA, LDB, M, N
100 DOUBLE PRECISION RESULT
103 DOUBLE PRECISION A( LDA, * ), B( LDB, * ), WORK( * )
109 DOUBLE PRECISION ONE, ZERO
110 parameter( one = 1.0d+0, zero = 0.0d+0 )
114 DOUBLE PRECISION ANORM, EPS, UNFL, WNORM
117 DOUBLE PRECISION DASUM, DLAMCH, DLANGE
118 EXTERNAL dasum, dlamch, dlange
124 INTRINSIC dble, max, min
130 IF( m.LE.0 .OR. n.LE.0 )
THEN
135 unfl = dlamch(
'Safe minimum' )
136 eps = dlamch(
'Precision' )
140 CALL dcopy( m, a( 1, j ), 1, work, 1 )
141 CALL daxpy( m, -one, b( 1, j ), 1, work, 1 )
142 wnorm = max( wnorm, dasum( n, work, 1 ) )
145 anorm = max( dlange(
'1', m, n, a, lda, work ), unfl )
147 IF( anorm.GT.wnorm )
THEN
148 result = ( wnorm / anorm ) / ( m*eps )
150 IF( anorm.LT.one )
THEN
151 result = ( min( wnorm, m*anorm ) / anorm ) / ( m*eps )
153 result = min( wnorm / anorm, dble( m ) ) / ( m*eps )
subroutine dget10(m, n, a, lda, b, ldb, work, result)
DGET10
subroutine daxpy(n, da, dx, incx, dy, incy)
DAXPY
subroutine dcopy(n, dx, incx, dy, incy)
DCOPY