70 parameter( zero = 0.0d0 )
73 INTEGER I, IHI, ILO, INFO, J, KNT, N, NINFO
74 DOUBLE PRECISION EPS, RMAX, SAFMIN, VMAX, X
78 DOUBLE PRECISION E( LDE, LDE ), EIN( LDE, LDE ), SCALE( LDE )
81 DOUBLE PRECISION DLAMCH
98 safmin = dlamch(
'S' )
102 READ( nin, fmt = * )n, ilo, ihi
106 READ( nin, fmt = * )( scale( i ), i = 1, n )
108 READ( nin, fmt = * )( e( i, j ), j = 1, n )
112 READ( nin, fmt = * )( ein( i, j ), j = 1, n )
116 CALL dgebak(
'B',
'R', n, ilo, ihi, scale, n, e, lde, info )
126 x = abs( e( i, j )-ein( i, j ) ) / eps
127 IF( abs( e( i, j ) ).GT.safmin )
128 $ x = x / abs( e( i, j ) )
129 vmax = max( vmax, x )
133 IF( vmax.GT.rmax )
THEN
142 WRITE( nout, fmt = 9999 )
143 9999
FORMAT( 1x,
'.. test output of DGEBAK .. ' )
145 WRITE( nout, fmt = 9998 )rmax
146 9998
FORMAT( 1x,
'value of largest test error = ', d12.3 )
147 WRITE( nout, fmt = 9997 )lmax( 1 )
148 9997
FORMAT( 1x,
'example number where info is not zero = ', i4 )
149 WRITE( nout, fmt = 9996 )lmax( 2 )
150 9996
FORMAT( 1x,
'example number having largest error = ', i4 )
151 WRITE( nout, fmt = 9995 )ninfo
152 9995
FORMAT( 1x,
'number of examples where info is not 0 = ', i4 )
153 WRITE( nout, fmt = 9994 )knt
154 9994
FORMAT( 1x,
'total number of examples tested = ', i4 )
subroutine dchkbk(nin, nout)
DCHKBK
subroutine dgebak(job, side, n, ilo, ihi, scale, m, v, ldv, info)
DGEBAK