83 SUBROUTINE clatsp( UPLO, N, X, ISEED )
102 parameter( eye = ( 0.0, 1.0 ) )
106 REAL ALPHA, ALPHA3, BETA
120 alpha = ( 1.+sqrt( 17. ) ) / 8.
121 beta = alpha - 1. / 1000.
122 alpha3 = alpha*alpha*alpha
126 DO 10 j = 1, n*( n+1 ) / 2
132 IF( uplo.EQ.
'U' )
THEN
138 a = alpha3*clarnd( 5, iseed )
139 b = clarnd( 5, iseed ) / alpha
145 x( jj ) = clarnd( 2, iseed )
150 x( jj ) = clarnd( 2, iseed )
152 x( jj ) = clarnd( 2, iseed )
153 IF( abs( x( jj+( j-3 ) ) ).GT.abs( x( jj ) ) )
THEN
154 x( jj+( j-4 ) ) = 2.0*x( jj+( j-3 ) )
156 x( jj+( j-4 ) ) = 2.0*x( jj )
165 a = alpha3*clarnd( 5, iseed )
166 b = clarnd( 5, iseed ) / alpha
172 x( jj ) = clarnd( 2, iseed )
180 x( jj ) = clarnd( 2, iseed )
181 x( jj-j ) = clarnd( 2, iseed )
182 IF( abs( x( jj ) ).GT.abs( x( jj-j ) ) )
THEN
183 x( jj-1 ) = 2.0*x( jj )
185 x( jj-1 ) = 2.0*x( jj-j )
187 jj = jj - j - ( j-1 )
189 ELSE IF( j.EQ.1 )
THEN
190 x( jj ) = clarnd( 2, iseed )
202 a = alpha3*clarnd( 5, iseed )
203 b = clarnd( 5, iseed ) / alpha
209 x( jj ) = clarnd( 2, iseed )
214 x( jj ) = clarnd( 2, iseed )
216 x( jj ) = clarnd( 2, iseed )
217 IF( abs( x( jj-( n-j-2 ) ) ).GT.abs( x( jj ) ) )
THEN
218 x( jj-( n-j-2 )+1 ) = 2.0*x( jj-( n-j-2 ) )
220 x( jj-( n-j-2 )+1 ) = 2.0*x( jj )
229 a = alpha3*clarnd( 5, iseed )
230 b = clarnd( 5, iseed ) / alpha
236 x( jj ) = clarnd( 2, iseed )
244 x( jj ) = clarnd( 2, iseed )
245 x( jj+( n-j+1 ) ) = clarnd( 2, iseed )
246 IF( abs( x( jj ) ).GT.abs( x( jj+( n-j+1 ) ) ) )
THEN
247 x( jj+1 ) = 2.0*x( jj )
249 x( jj+1 ) = 2.0*x( jj+( n-j+1 ) )
251 jj = jj + ( n-j+1 ) + ( n-j )
253 ELSE IF( j.EQ.n )
THEN
254 x( jj ) = clarnd( 2, iseed )
subroutine clatsp(uplo, n, x, iseed)
CLATSP