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

◆ zbeg()

complex*16 function zbeg ( logical reset)

Definition at line 2734 of file c_zblat3.f.

2735*
2736* Generates complex numbers as pairs of random numbers uniformly
2737* distributed between -0.5 and 0.5.
2738*
2739* Auxiliary routine for test program for Level 3 Blas.
2740*
2741* -- Written on 8-February-1989.
2742* Jack Dongarra, Argonne National Laboratory.
2743* Iain Duff, AERE Harwell.
2744* Jeremy Du Croz, Numerical Algorithms Group Ltd.
2745* Sven Hammarling, Numerical Algorithms Group Ltd.
2746*
2747* .. Scalar Arguments ..
2748 LOGICAL RESET
2749* .. Local Scalars ..
2750 INTEGER I, IC, J, MI, MJ
2751* .. Save statement ..
2752 SAVE i, ic, j, mi, mj
2753* .. Intrinsic Functions ..
2754 INTRINSIC dcmplx
2755* .. Executable Statements ..
2756 IF( reset )THEN
2757* Initialize local variables.
2758 mi = 891
2759 mj = 457
2760 i = 7
2761 j = 7
2762 ic = 0
2763 reset = .false.
2764 END IF
2765*
2766* The sequence of values of I or J is bounded between 1 and 999.
2767* If initial I or J = 1,2,3,6,7 or 9, the period will be 50.
2768* If initial I or J = 4 or 8, the period will be 25.
2769* If initial I or J = 5, the period will be 10.
2770* IC is used to break up the period by skipping 1 value of I or J
2771* in 6.
2772*
2773 ic = ic + 1
2774 10 i = i*mi
2775 j = j*mj
2776 i = i - 1000*( i/1000 )
2777 j = j - 1000*( j/1000 )
2778 IF( ic.GE.5 )THEN
2779 ic = 0
2780 GO TO 10
2781 END IF
2782 zbeg = dcmplx( ( i - 500 )/1001.0d0, ( j - 500 )/1001.0d0 )
2783 RETURN
2784*
2785* End of ZBEG.
2786*
complex *16 function zbeg(reset)
Definition zblat2.f:3164
Here is the call graph for this function: