LAPACK  3.10.1
LAPACK: Linear Algebra PACKage

◆ zbeg()

complex*16 function zbeg ( logical  RESET)

Definition at line 3135 of file zblat2.f.

3136 *
3137 * Generates complex numbers as pairs of random numbers uniformly
3138 * distributed between -0.5 and 0.5.
3139 *
3140 * Auxiliary routine for test program for Level 2 Blas.
3141 *
3142 * -- Written on 10-August-1987.
3143 * Richard Hanson, Sandia National Labs.
3144 * Jeremy Du Croz, NAG Central Office.
3145 *
3146 * .. Scalar Arguments ..
3147  LOGICAL RESET
3148 * .. Local Scalars ..
3149  INTEGER I, IC, J, MI, MJ
3150 * .. Save statement ..
3151  SAVE i, ic, j, mi, mj
3152 * .. Intrinsic Functions ..
3153  INTRINSIC dcmplx
3154 * .. Executable Statements ..
3155  IF( reset )THEN
3156 * Initialize local variables.
3157  mi = 891
3158  mj = 457
3159  i = 7
3160  j = 7
3161  ic = 0
3162  reset = .false.
3163  END IF
3164 *
3165 * The sequence of values of I or J is bounded between 1 and 999.
3166 * If initial I or J = 1,2,3,6,7 or 9, the period will be 50.
3167 * If initial I or J = 4 or 8, the period will be 25.
3168 * If initial I or J = 5, the period will be 10.
3169 * IC is used to break up the period by skipping 1 value of I or J
3170 * in 6.
3171 *
3172  ic = ic + 1
3173  10 i = i*mi
3174  j = j*mj
3175  i = i - 1000*( i/1000 )
3176  j = j - 1000*( j/1000 )
3177  IF( ic.GE.5 )THEN
3178  ic = 0
3179  GO TO 10
3180  END IF
3181  zbeg = dcmplx( ( i - 500 )/1001.0d0, ( j - 500 )/1001.0d0 )
3182  RETURN
3183 *
3184 * End of ZBEG
3185 *
complex *16 function zbeg(RESET)
Definition: zblat2.f:3136
Here is the caller graph for this function: