File: README

package info (click to toggle)
sprng 2.0a-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,308 kB
  • sloc: ansic: 30,353; fortran: 1,618; makefile: 575; cpp: 58; sh: 5
file content (63 lines) | stat: -rwxr-xr-x 2,297 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---------------------------------------------------------------------------
	Single Library Version of SPRNG
---------------------------------------------------------------------------


SPRNG provides both FORTRAN and C (also C++) interfaces for the use of
the parallel random number generators.  The new version has all the 
generators in one library. A complete new documentation is not available
yet. Please consult the old documentations and the interface changes 
listed below.

Old doc:
	Old documentation is available at the following URL:  
	http://www.ncsa.uiuc.edu/Apps/CMP/RNG/RNG-home.html

	sprng.html.tar too contains similar documentation. Please execute: 
	zcat tar xvf sprng.html.tar.Z | tar xvof -  
	and read the file toc.html in the www directory with your web browser.

SPRNG interface changes:

	Using the previous version of SPRNG, a user can use only one of the
	SPRNG generators in one run of the program. The objective of the new
	version is to combine the current random number generators (RNGs) into
	a single library so that a user can use all of them in a single program
	at a same time.
   
	The user now is able to and needs to specify the type of RNG when a
	random number stream is initialized. We add one integer argument
	rng_type to the front of the argument list of the function init_sprng.

	int *init_sprng(int rng_type, 
		int stream_number, int nstreams, int seed, int rng_parameter) 
	   SPRNG_POINTER init_sprng(integer rng_type,
			   integer streamnum, integer nstreams,
			   integer seed, integer param)


	User can sprcify one of the follows for rng_type:
         SPRNG_LFG 
         SPRNG_LCG 
         SPRNG_LCG64 
         SPRNG_CMRG 
         SPRNG_MLFG 
         SPRNG_PMLCG 
	The following macros are added to sprng.h and sprng_f.h:

	#define SPRNG_LFG	0
	#define SPRNG_LCG 	1
	#define SPRNG_LCG64 2
	#define SPRNG_CMRG 	3
	#define SPRNG_MLFG 	4
	#define SPRNG_PMLCG 5

	For simple interface, a user can only have one random number stream at
	one time since he doesn't specify stream ID.  
	The default generator is "SPRNG_LFG".
	User still can change RNG at runtime by calling init_sprng:
	int *init_sprng(int rng_type, 
		int seed, int rng_parameter) 
	   SPRNG_POINTER init_sprng(integer rng_type,
			   integer seed, integer param)