2922 parameter ( zero = ( 0.0, 0.0 ) )
2924 parameter ( rzero = 0.0, rone = 1.0 )
2928 INTEGER incx, incy, m, n, nmax, nout
2932 COMPLEX a( nmax, * ), x( * ), y( * ), yt( * ), yy( * )
2937 INTEGER i, incxl, incyl, iy, j, jx, kx, ky, ml, nl
2940 INTRINSIC abs, aimag, conjg, max,
REAL, sqrt
2944 abs1( c ) = abs(
REAL( C ) ) + abs( aimag( c ) )
2947 ctran = trans.EQ.
'C'
2948 IF( tran.OR.ctran )
THEN
2980 yt( iy ) = yt( iy ) + a( j, i )*x( jx )
2981 g( iy ) = g( iy ) + abs1( a( j, i ) )*abs1( x( jx ) )
2984 ELSE IF( ctran )
THEN
2986 yt( iy ) = yt( iy ) + conjg( a( j, i ) )*x( jx )
2987 g( iy ) = g( iy ) + abs1( a( j, i ) )*abs1( x( jx ) )
2992 yt( iy ) = yt( iy ) + a( i, j )*x( jx )
2993 g( iy ) = g( iy ) + abs1( a( i, j ) )*abs1( x( jx ) )
2997 yt( iy ) = alpha*yt( iy ) + beta*y( iy )
2998 g( iy ) = abs1( alpha )*g( iy ) + abs1( beta )*abs1( y( iy ) )
3006 erri = abs( yt( i ) - yy( 1 + ( i - 1 )*abs( incy ) ) )/eps
3007 IF( g( i ).NE.rzero )
3008 $ erri = erri/g( i )
3009 err = max( err, erri )
3010 IF( err*sqrt( eps ).GE.rone )
3019 WRITE( nout, fmt = 9999 )
3022 WRITE( nout, fmt = 9998 )i, yt( i ),
3023 $ yy( 1 + ( i - 1 )*abs( incy ) )
3025 WRITE( nout, fmt = 9998 )i,
3026 $ yy( 1 + ( i - 1 )*abs( incy ) ), yt( i )
3033 9999
FORMAT(
' ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HAL',
3034 $
'F ACCURATE *******', /
' EXPECTED RE',
3035 $
'SULT COMPUTED RESULT' )
3036 9998
FORMAT( 1x, i7, 2(
' (', g15.6,
',', g15.6,
')' ) )