94 SUBROUTINE dget10( M, N, A, LDA, B, LDB, WORK, RESULT )
102 INTEGER LDA, LDB, M, N
103 DOUBLE PRECISION RESULT
106 DOUBLE PRECISION A( lda, * ), B( ldb, * ), WORK( * )
112 DOUBLE PRECISION ONE, ZERO
113 parameter ( one = 1.0d+0, zero = 0.0d+0 )
117 DOUBLE PRECISION ANORM, EPS, UNFL, WNORM
120 DOUBLE PRECISION DASUM, DLAMCH, DLANGE
121 EXTERNAL dasum, dlamch, dlange
127 INTRINSIC dble, max, min
133 IF( m.LE.0 .OR. n.LE.0 )
THEN
138 unfl = dlamch(
'Safe minimum' )
139 eps = dlamch(
'Precision' )
143 CALL dcopy( m, a( 1, j ), 1, work, 1 )
144 CALL daxpy( m, -one, b( 1, j ), 1, work, 1 )
145 wnorm = max( wnorm, dasum( n, work, 1 ) )
148 anorm = max( dlange(
'1', m, n, a, lda, work ), unfl )
150 IF( anorm.GT.wnorm )
THEN
151 result = ( wnorm / anorm ) / ( m*eps )
153 IF( anorm.LT.one )
THEN
154 result = ( min( wnorm, m*anorm ) / anorm ) / ( m*eps )
156 result = min( wnorm / anorm, dble( m ) ) / ( m*eps )
subroutine dcopy(N, DX, INCX, DY, INCY)
DCOPY
subroutine daxpy(N, DA, DX, INCX, DY, INCY)
DAXPY
subroutine dget10(M, N, A, LDA, B, LDB, WORK, RESULT)
DGET10