1 SUBROUTINE zlatm1( MODE, COND, IRSIGN, IDIST, ISEED, D, N, INFO )
8 INTEGER IDIST, INFO, IRSIGN, MODE, N
95 parameter( one = 1.0d0 )
99 DOUBLE PRECISION ALPHA, TEMP
103 DOUBLE PRECISION DLARAN
105 EXTERNAL dlaran, zlarnd
111 INTRINSIC abs, dble, exp, log
126 IF( mode.LT.-6 .OR. mode.GT.6 )
THEN
128 ELSE IF( ( mode.NE.-6 .AND. mode.NE.0 .AND. mode.NE.6 ) .AND.
129 $ ( irsign.NE.0 .AND. irsign.NE.1 ) )
THEN
131 ELSE IF( ( mode.NE.-6 .AND. mode.NE.0 .AND. mode.NE.6 ) .AND.
134 ELSE IF( ( mode.EQ.6 .OR. mode.EQ.-6 ) .AND.
135 $ ( idist.LT.1 .OR. idist.GT.4 ) )
THEN
137 ELSE IF( n.LT.0 )
THEN
142 CALL xerbla(
'ZLATM1', -info )
149 GO TO ( 10, 30, 50, 70, 90, 110 )abs( mode )
174 alpha = cond**( -one / dble( n-1 ) )
176 d( i ) = alpha**( i-1 )
187 alpha = ( one-temp ) / dble( n-1 )
189 d( i ) = dble( n-i )*alpha + temp
197 alpha = log( one / cond )
199 d( i ) = exp( alpha*dlaran( iseed ) )
206 CALL zlarnv( idist, iseed, n, d )
213 IF( ( mode.NE.-6 .AND. mode.NE.0 .AND. mode.NE.6 ) .AND.
216 ctemp = zlarnd( 3, iseed )
217 d( i ) = d( i )*( ctemp / abs( ctemp ) )