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

◆ sbeg()

real function sbeg ( logical reset)

Definition at line 2806 of file sblat3.f.

2807*
2808* Generates random numbers uniformly distributed between -0.5 and 0.5.
2809*
2810* Auxiliary routine for test program for Level 3 Blas.
2811*
2812* -- Written on 8-February-1989.
2813* Jack Dongarra, Argonne National Laboratory.
2814* Iain Duff, AERE Harwell.
2815* Jeremy Du Croz, Numerical Algorithms Group Ltd.
2816* Sven Hammarling, Numerical Algorithms Group Ltd.
2817*
2818* .. Scalar Arguments ..
2819 LOGICAL RESET
2820* .. Local Scalars ..
2821 INTEGER I, IC, MI
2822* .. Save statement ..
2823 SAVE i, ic, mi
2824* .. Executable Statements ..
2825 IF( reset )THEN
2826* Initialize local variables.
2827 mi = 891
2828 i = 7
2829 ic = 0
2830 reset = .false.
2831 END IF
2832*
2833* The sequence of values of I is bounded between 1 and 999.
2834* If initial I = 1,2,3,6,7 or 9, the period will be 50.
2835* If initial I = 4 or 8, the period will be 25.
2836* If initial I = 5, the period will be 10.
2837* IC is used to break up the period by skipping 1 value of I in 6.
2838*
2839 ic = ic + 1
2840 10 i = i*mi
2841 i = i - 1000*( i/1000 )
2842 IF( ic.GE.5 )THEN
2843 ic = 0
2844 GO TO 10
2845 END IF
2846 sbeg = ( i - 500 )/1001.0
2847 RETURN
2848*
2849* End of SBEG
2850*
real function sbeg(reset)
Definition sblat2.f:3059
Here is the call graph for this function: