LAPACK  3.9.1
LAPACK: Linear Algebra PACKage

◆ zbeg()

complex*16 function zbeg ( logical  RESET)

Definition at line 3341 of file zblat3.f.

3342 *
3343 * Generates complex numbers as pairs of random numbers uniformly
3344 * distributed between -0.5 and 0.5.
3345 *
3346 * Auxiliary routine for test program for Level 3 Blas.
3347 *
3348 * -- Written on 8-February-1989.
3349 * Jack Dongarra, Argonne National Laboratory.
3350 * Iain Duff, AERE Harwell.
3351 * Jeremy Du Croz, Numerical Algorithms Group Ltd.
3352 * Sven Hammarling, Numerical Algorithms Group Ltd.
3353 *
3354 * .. Scalar Arguments ..
3355  LOGICAL RESET
3356 * .. Local Scalars ..
3357  INTEGER I, IC, J, MI, MJ
3358 * .. Save statement ..
3359  SAVE i, ic, j, mi, mj
3360 * .. Intrinsic Functions ..
3361  INTRINSIC dcmplx
3362 * .. Executable Statements ..
3363  IF( reset )THEN
3364 * Initialize local variables.
3365  mi = 891
3366  mj = 457
3367  i = 7
3368  j = 7
3369  ic = 0
3370  reset = .false.
3371  END IF
3372 *
3373 * The sequence of values of I or J is bounded between 1 and 999.
3374 * If initial I or J = 1,2,3,6,7 or 9, the period will be 50.
3375 * If initial I or J = 4 or 8, the period will be 25.
3376 * If initial I or J = 5, the period will be 10.
3377 * IC is used to break up the period by skipping 1 value of I or J
3378 * in 6.
3379 *
3380  ic = ic + 1
3381  10 i = i*mi
3382  j = j*mj
3383  i = i - 1000*( i/1000 )
3384  j = j - 1000*( j/1000 )
3385  IF( ic.GE.5 )THEN
3386  ic = 0
3387  GO TO 10
3388  END IF
3389  zbeg = dcmplx( ( i - 500 )/1001.0d0, ( j - 500 )/1001.0d0 )
3390  RETURN
3391 *
3392 * End of ZBEG.
3393 *
complex *16 function zbeg(RESET)
Definition: zblat2.f:3136
Here is the call graph for this function: