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

◆ dbeg()

double precision function dbeg ( logical reset)

Definition at line 2428 of file c_dblat3.f.

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