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

◆ cbeg()

complex function cbeg ( logical  reset)

Definition at line 2715 of file c_cblat3.f.

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