2930 parameter ( zero = ( 0.0d0, 0.0d0 ) )
2931 DOUBLE PRECISION rzero, rone
2932 parameter ( rzero = 0.0d0, rone = 1.0d0 )
2934 COMPLEX*16 alpha, beta
2935 DOUBLE PRECISION eps, err
2936 INTEGER incx, incy, m, n, nmax, nout
2940 COMPLEX*16 a( nmax, * ), x( * ), y( * ), yt( * ), yy( * )
2941 DOUBLE PRECISION g( * )
2944 DOUBLE PRECISION erri
2945 INTEGER i, incxl, incyl, iy, j, jx, kx, ky, ml, nl
2948 INTRINSIC abs, dble, dconjg, dimag, max, sqrt
2950 DOUBLE PRECISION abs1
2952 abs1( c ) = abs( dble( c ) ) + abs( dimag( c ) )
2955 ctran = trans.EQ.
'C'
2956 IF( tran.OR.ctran )
THEN
2988 yt( iy ) = yt( iy ) + a( j, i )*x( jx )
2989 g( iy ) = g( iy ) + abs1( a( j, i ) )*abs1( x( jx ) )
2992 ELSE IF( ctran )
THEN
2994 yt( iy ) = yt( iy ) + dconjg( a( j, i ) )*x( jx )
2995 g( iy ) = g( iy ) + abs1( a( j, i ) )*abs1( x( jx ) )
3000 yt( iy ) = yt( iy ) + a( i, j )*x( jx )
3001 g( iy ) = g( iy ) + abs1( a( i, j ) )*abs1( x( jx ) )
3005 yt( iy ) = alpha*yt( iy ) + beta*y( iy )
3006 g( iy ) = abs1( alpha )*g( iy ) + abs1( beta )*abs1( y( iy ) )
3014 erri = abs( yt( i ) - yy( 1 + ( i - 1 )*abs( incy ) ) )/eps
3015 IF( g( i ).NE.rzero )
3016 $ erri = erri/g( i )
3017 err = max( err, erri )
3018 IF( err*sqrt( eps ).GE.rone )
3027 WRITE( nout, fmt = 9999 )
3030 WRITE( nout, fmt = 9998 )i, yt( i ),
3031 $ yy( 1 + ( i - 1 )*abs( incy ) )
3033 WRITE( nout, fmt = 9998 )i,
3034 $ yy( 1 + ( i - 1 )*abs( incy ) ), yt( i )
3041 9999
FORMAT(
' ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HAL',
3042 $
'F ACCURATE *******', /
' EXPECTED RE',
3043 $
'SULT COMPUTED RESULT' )
3044 9998
FORMAT( 1x, i7, 2(
' (', g15.6,
',', g15.6,
')' ) )