2464 parameter ( zero = ( 0.0, 0.0 ) )
2466 parameter ( rzero = 0.0, rone = 1.0 )
2470 INTEGER incx, incy, m, n, nmax, nout
2474 COMPLEX a( nmax, * ), x( * ), y( * ), yt( * ), yy( * )
2479 INTEGER i, incxl, incyl, iy, j, jx, kx, ky, ml, nl
2482 INTRINSIC abs, aimag, conjg, max,
REAL, sqrt
2486 abs1( c ) = abs(
REAL( C ) ) + abs( aimag( c ) )
2489 ctran = trans.EQ.
'C'
2490 IF( tran.OR.ctran )
THEN
2522 yt( iy ) = yt( iy ) + a( j, i )*x( jx )
2523 g( iy ) = g( iy ) + abs1( a( j, i ) )*abs1( x( jx ) )
2526 ELSE IF( ctran )
THEN
2528 yt( iy ) = yt( iy ) + conjg( a( j, i ) )*x( jx )
2529 g( iy ) = g( iy ) + abs1( a( j, i ) )*abs1( x( jx ) )
2534 yt( iy ) = yt( iy ) + a( i, j )*x( jx )
2535 g( iy ) = g( iy ) + abs1( a( i, j ) )*abs1( x( jx ) )
2539 yt( iy ) = alpha*yt( iy ) + beta*y( iy )
2540 g( iy ) = abs1( alpha )*g( iy ) + abs1( beta )*abs1( y( iy ) )
2548 erri = abs( yt( i ) - yy( 1 + ( i - 1 )*abs( incy ) ) )/eps
2549 IF( g( i ).NE.rzero )
2550 $ erri = erri/g( i )
2551 err = max( err, erri )
2552 IF( err*sqrt( eps ).GE.rone )
2561 WRITE( nout, fmt = 9999 )
2564 WRITE( nout, fmt = 9998 )i, yt( i ),
2565 $ yy( 1 + ( i - 1 )*abs( incy ) )
2567 WRITE( nout, fmt = 9998 )i,
2568 $ yy( 1 + ( i - 1 )*abs( incy ) ), yt( i )
2575 9999
FORMAT(
' ******* FATAL ERROR - COMPUTED RESULT IS LESS THAN HAL',
2576 $
'F ACCURATE *******', /
' EXPECTED RE',
2577 $
'SULT COMPUTED RESULT' )
2578 9998
FORMAT( 1x, i7, 2(
' (', g15.6,
',', g15.6,
')' ) )