85 SUBROUTINE clatsp( UPLO, N, X, ISEED )
105 parameter ( eye = ( 0.0, 1.0 ) )
109 REAL ALPHA, ALPHA3, BETA
123 alpha = ( 1.+sqrt( 17. ) ) / 8.
124 beta = alpha - 1. / 1000.
125 alpha3 = alpha*alpha*alpha
129 DO 10 j = 1, n*( n+1 ) / 2
135 IF( uplo.EQ.
'U' )
THEN
141 a = alpha3*clarnd( 5, iseed )
142 b = clarnd( 5, iseed ) / alpha
148 x( jj ) = clarnd( 2, iseed )
153 x( jj ) = clarnd( 2, iseed )
155 x( jj ) = clarnd( 2, iseed )
156 IF( abs( x( jj+( j-3 ) ) ).GT.abs( x( jj ) ) )
THEN
157 x( jj+( j-4 ) ) = 2.0*x( jj+( j-3 ) )
159 x( jj+( j-4 ) ) = 2.0*x( jj )
168 a = alpha3*clarnd( 5, iseed )
169 b = clarnd( 5, iseed ) / alpha
175 x( jj ) = clarnd( 2, iseed )
183 x( jj ) = clarnd( 2, iseed )
184 x( jj-j ) = clarnd( 2, iseed )
185 IF( abs( x( jj ) ).GT.abs( x( jj-j ) ) )
THEN
186 x( jj-1 ) = 2.0*x( jj )
188 x( jj-1 ) = 2.0*x( jj-j )
190 jj = jj - j - ( j-1 )
192 ELSE IF( j.EQ.1 )
THEN
193 x( jj ) = clarnd( 2, iseed )
205 a = alpha3*clarnd( 5, iseed )
206 b = clarnd( 5, iseed ) / alpha
212 x( jj ) = clarnd( 2, iseed )
217 x( jj ) = clarnd( 2, iseed )
219 x( jj ) = clarnd( 2, iseed )
220 IF( abs( x( jj-( n-j-2 ) ) ).GT.abs( x( jj ) ) )
THEN
221 x( jj-( n-j-2 )+1 ) = 2.0*x( jj-( n-j-2 ) )
223 x( jj-( n-j-2 )+1 ) = 2.0*x( jj )
232 a = alpha3*clarnd( 5, iseed )
233 b = clarnd( 5, iseed ) / alpha
239 x( jj ) = clarnd( 2, iseed )
247 x( jj ) = clarnd( 2, iseed )
248 x( jj+( n-j+1 ) ) = clarnd( 2, iseed )
249 IF( abs( x( jj ) ).GT.abs( x( jj+( n-j+1 ) ) ) )
THEN
250 x( jj+1 ) = 2.0*x( jj )
252 x( jj+1 ) = 2.0*x( jj+( n-j+1 ) )
254 jj = jj + ( n-j+1 ) + ( n-j )
256 ELSE IF( j.EQ.n )
THEN
257 x( jj ) = clarnd( 2, iseed )
subroutine clatsp(UPLO, N, X, ISEED)
CLATSP