70 parameter( zero = 0.0e0 )
73 INTEGER I, IHI, ILO, INFO, J, KNT, N, NINFO
74 REAL EPS, RMAX, SAFMIN, VMAX, X
80 COMPLEX E( LDE, LDE ), EIN( LDE, LDE )
90 INTRINSIC abs, aimag, max, real
96 cabs1( cdum ) = abs( real( cdum ) ) + abs( aimag( cdum ) )
106 safmin = slamch(
'S' )
110 READ( nin, fmt = * )n, ilo, ihi
114 READ( nin, fmt = * )( scale( i ), i = 1, n )
116 READ( nin, fmt = * )( e( i, j ), j = 1, n )
120 READ( nin, fmt = * )( ein( i, j ), j = 1, n )
124 CALL cgebak(
'B',
'R', n, ilo, ihi, scale, n, e, lde, info )
134 x = cabs1( e( i, j )-ein( i, j ) ) / eps
135 IF( cabs1( e( i, j ) ).GT.safmin )
136 $ x = x / cabs1( e( i, j ) )
137 vmax = max( vmax, x )
141 IF( vmax.GT.rmax )
THEN
150 WRITE( nout, fmt = 9999 )
151 9999
FORMAT( 1x,
'.. test output of CGEBAK .. ' )
153 WRITE( nout, fmt = 9998 )rmax
154 9998
FORMAT( 1x,
'value of largest test error = ', e12.3 )
155 WRITE( nout, fmt = 9997 )lmax( 1 )
156 9997
FORMAT( 1x,
'example number where info is not zero = ', i4 )
157 WRITE( nout, fmt = 9996 )lmax( 2 )
158 9996
FORMAT( 1x,
'example number having largest error = ', i4 )
159 WRITE( nout, fmt = 9995 )ninfo
160 9995
FORMAT( 1x,
'number of examples where info is not 0 = ', i4 )
161 WRITE( nout, fmt = 9994 )knt
162 9994
FORMAT( 1x,
'total number of examples tested = ', i4 )
subroutine cchkbk(nin, nout)
CCHKBK
subroutine cgebak(job, side, n, ilo, ihi, scale, m, v, ldv, info)
CGEBAK