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

◆ sbeg()

real function sbeg ( logical reset)

Definition at line 2434 of file c_sblat3.f.

2435*
2436* Generates random numbers uniformly distributed between -0.5 and 0.5.
2437*
2438* Auxiliary routine for test program for Level 3 Blas.
2439*
2440* -- Written on 8-February-1989.
2441* Jack Dongarra, Argonne National Laboratory.
2442* Iain Duff, AERE Harwell.
2443* Jeremy Du Croz, Numerical Algorithms Group Ltd.
2444* Sven Hammarling, Numerical Algorithms Group Ltd.
2445*
2446* .. Scalar Arguments ..
2447 LOGICAL RESET
2448* .. Local Scalars ..
2449 INTEGER I, IC, MI
2450* .. Save statement ..
2451 SAVE i, ic, mi
2452* .. Executable Statements ..
2453 IF( reset )THEN
2454* Initialize local variables.
2455 mi = 891
2456 i = 7
2457 ic = 0
2458 reset = .false.
2459 END IF
2460*
2461* The sequence of values of I is bounded between 1 and 999.
2462* If initial I = 1,2,3,6,7 or 9, the period will be 50.
2463* If initial I = 4 or 8, the period will be 25.
2464* If initial I = 5, the period will be 10.
2465* IC is used to break up the period by skipping 1 value of I in 6.
2466*
2467 ic = ic + 1
2468 10 i = i*mi
2469 i = i - 1000*( i/1000 )
2470 IF( ic.GE.5 )THEN
2471 ic = 0
2472 GO TO 10
2473 END IF
2474 sbeg = ( i - 500 )/1001.0
2475 RETURN
2476*
2477* End of SBEG.
2478*
real function sbeg(reset)
Definition sblat2.f:3059
Here is the call graph for this function: