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

◆ zbeg()

complex*16 function zbeg ( logical  reset)

Definition at line 2719 of file c_zblat3.f.

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