LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ zbeg()

complex*16 function zbeg ( logical reset)

Definition at line 3546 of file zblat3.f.

3547*
3548* Generates complex numbers as pairs of random numbers uniformly
3549* distributed between -0.5 and 0.5.
3550*
3551* Auxiliary routine for test program for Level 3 Blas.
3552*
3553* -- Written on 8-February-1989.
3554* Jack Dongarra, Argonne National Laboratory.
3555* Iain Duff, AERE Harwell.
3556* Jeremy Du Croz, Numerical Algorithms Group Ltd.
3557* Sven Hammarling, Numerical Algorithms Group Ltd.
3558*
3559* .. Scalar Arguments ..
3560 LOGICAL RESET
3561* .. Local Scalars ..
3562 INTEGER I, IC, J, MI, MJ
3563* .. Save statement ..
3564 SAVE i, ic, j, mi, mj
3565* .. Intrinsic Functions ..
3566 INTRINSIC dcmplx
3567* .. Executable Statements ..
3568 IF( reset )THEN
3569* Initialize local variables.
3570 mi = 891
3571 mj = 457
3572 i = 7
3573 j = 7
3574 ic = 0
3575 reset = .false.
3576 END IF
3577*
3578* The sequence of values of I or J is bounded between 1 and 999.
3579* If initial I or J = 1,2,3,6,7 or 9, the period will be 50.
3580* If initial I or J = 4 or 8, the period will be 25.
3581* If initial I or J = 5, the period will be 10.
3582* IC is used to break up the period by skipping 1 value of I or J
3583* in 6.
3584*
3585 ic = ic + 1
3586 10 i = i*mi
3587 j = j*mj
3588 i = i - 1000*( i/1000 )
3589 j = j - 1000*( j/1000 )
3590 IF( ic.GE.5 )THEN
3591 ic = 0
3592 GO TO 10
3593 END IF
3594 zbeg = dcmplx( ( i - 500 )/1001.0d0, ( j - 500 )/1001.0d0 )
3595 RETURN
3596*
3597* End of ZBEG
3598*
complex *16 function zbeg(reset)
Definition zblat2.f:3164
Here is the call graph for this function: