70 parameter( zero = 0.0d0 )
73 INTEGER I, IHI, ILO, INFO, J, KNT, N, NINFO
74 DOUBLE PRECISION EPS, RMAX, SAFMIN, VMAX, X
79 DOUBLE PRECISION SCALE( LDE )
80 COMPLEX*16 E( LDE, LDE ), EIN( LDE, LDE )
83 DOUBLE PRECISION DLAMCH
90 INTRINSIC abs, dble, dimag, max
93 DOUBLE PRECISION CABS1
96 cabs1( cdum ) = abs( dble( cdum ) ) + abs( dimag( cdum ) )
106 safmin = dlamch(
'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 zgebak(
'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 ZGEBAK .. ' )
153 WRITE( nout, fmt = 9998 )rmax
154 9998
FORMAT( 1x,
'value of largest test error = ', d12.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 zgebak(job, side, n, ilo, ihi, scale, m, v, ldv, info)
ZGEBAK
subroutine zchkbk(nin, nout)
ZCHKBK