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

◆ psrand()

real function psrand ( integer  idumm)

Definition at line 223 of file pmatgeninc.f.

224*
225* -- ScaLAPACK routine (version 1.7) --
226* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
227* and University of California, Berkeley.
228* May 1, 1997
229*
230* .. Scalar Arguments ..
231 INTEGER IDUMM
232* ..
233*
234* =====================================================================
235*
236* .. Parameters ..
237 REAL DIVFAC, POW16
238 parameter( divfac=2.147483648e+9, pow16=6.5536e+4 )
239* ..
240* .. Local Arrays ..
241 INTEGER J( 2 )
242* ..
243* .. External Subroutines ..
244 EXTERNAL ladd, lmul
245* ..
246* .. Intrinsic Functions ..
247 INTRINSIC real
248* ..
249* .. Common Blocks ..
250 INTEGER IAS(2), ICS(2), IRAND(2)
251 COMMON /rancom/ irand, ias, ics
252 SAVE /rancom/
253* ..
254* .. Executable Statements ..
255*
256 psrand = ( real(irand(1)) + pow16 * real(irand(2)) ) / divfac
257*
258 CALL lmul( irand, ias, j )
259 CALL ladd( j, ics, irand )
260*
261 RETURN
262*
263* End of PSRAND
264*
real function psrand(idumm)
Definition pmatgeninc.f:224
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: