SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ pdrand()

double precision function pdrand ( integer  idumm)

Definition at line 271 of file pmatgeninc.f.

272*
273* -- ScaLAPACK routine (version 1.7) --
274* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
275* and University of California, Berkeley.
276* May 1, 1997
277*
278* .. Scalar Arguments ..
279 INTEGER IDUMM
280* ..
281*
282* =====================================================================
283*
284* .. Parameters ..
285 DOUBLE PRECISION DIVFAC, POW16
286 parameter( divfac=2.147483648d+9, pow16=6.5536d+4 )
287* ..
288* .. Local Arrays ..
289 INTEGER J(2)
290* ..
291* .. External Subroutines ..
292 EXTERNAL ladd, lmul
293* ..
294* .. Intrinsic Functions ..
295 INTRINSIC dble
296* ..
297* .. Common Blocks ..
298 INTEGER IAS(2), ICS(2), IRAND(2)
299 COMMON /rancom/ irand, ias, ics
300 SAVE /rancom/
301* ..
302* .. Executable Statements ..
303*
304 pdrand = ( dble(irand(1)) + pow16 * dble(irand(2)) ) / divfac
305*
306 CALL lmul( irand, ias, j )
307 CALL ladd( j, ics, irand )
308*
309 RETURN
310*
311* End of PDRAND
312*
double precision function pdrand(idumm)
Definition pmatgeninc.f:272
subroutine ladd(j, k, i)
Definition pmatgeninc.f:6
subroutine lmul(k, j, i)
Definition pmatgeninc.f:41
Here is the call graph for this function:
Here is the caller graph for this function: