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

◆ cbeg()

complex function cbeg ( logical reset)

Definition at line 3534 of file cblat3.f.

3535*
3536* Generates complex numbers as pairs of random numbers uniformly
3537* distributed between -0.5 and 0.5.
3538*
3539* Auxiliary routine for test program for Level 3 Blas.
3540*
3541* -- Written on 8-February-1989.
3542* Jack Dongarra, Argonne National Laboratory.
3543* Iain Duff, AERE Harwell.
3544* Jeremy Du Croz, Numerical Algorithms Group Ltd.
3545* Sven Hammarling, Numerical Algorithms Group Ltd.
3546*
3547* .. Scalar Arguments ..
3548 LOGICAL RESET
3549* .. Local Scalars ..
3550 INTEGER I, IC, J, MI, MJ
3551* .. Save statement ..
3552 SAVE i, ic, j, mi, mj
3553* .. Intrinsic Functions ..
3554 INTRINSIC cmplx
3555* .. Executable Statements ..
3556 IF( reset )THEN
3557* Initialize local variables.
3558 mi = 891
3559 mj = 457
3560 i = 7
3561 j = 7
3562 ic = 0
3563 reset = .false.
3564 END IF
3565*
3566* The sequence of values of I or J is bounded between 1 and 999.
3567* If initial I or J = 1,2,3,6,7 or 9, the period will be 50.
3568* If initial I or J = 4 or 8, the period will be 25.
3569* If initial I or J = 5, the period will be 10.
3570* IC is used to break up the period by skipping 1 value of I or J
3571* in 6.
3572*
3573 ic = ic + 1
3574 10 i = i*mi
3575 j = j*mj
3576 i = i - 1000*( i/1000 )
3577 j = j - 1000*( j/1000 )
3578 IF( ic.GE.5 )THEN
3579 ic = 0
3580 GO TO 10
3581 END IF
3582 cbeg = cmplx( ( i - 500 )/1001.0, ( j - 500 )/1001.0 )
3583 RETURN
3584*
3585* End of CBEG
3586*
complex function cbeg(reset)
Definition cblat2.f:3156
Here is the call graph for this function: