Visible to Intel only — GUID: GUID-8714DEAF-550D-4FDC-B8D0-05945CD856CB
Visible to Intel only — GUID: GUID-8714DEAF-550D-4FDC-B8D0-05945CD856CB
Service Routines
Stream handling comprises routines for creating, deleting, or copying the streams and getting the index of a basic generator. A random stream can also be saved to and then read from a binary file. Table "Service Routines" lists all available service routines
Routine |
Short Description |
---|---|
Creates and initializes a random stream. |
|
Creates and initializes a random stream for the generators with multiple initial conditions. |
|
Creates and initializes an abstract random stream for integer arrays. |
|
Creates and initializes an abstract random stream for double precision floating-point arrays. |
|
Creates and initializes an abstract random stream for single precision floating-point arrays. |
|
Deletes previously created stream. |
|
Copies a stream to another stream. |
|
Creates a copy of a random stream state. |
|
Writes a stream to a binary file. |
|
Reads a stream from a binary file. |
|
Writes a random stream descriptive data, including state, to a memory buffer. |
|
Creates a new stream and reads stream descriptive data, including state, from the memory buffer. |
|
Computes size of memory necessary to hold the random stream. |
|
Initializes the stream by the leapfrog method to generate a subsequence of the original sequence. |
|
Initializes the stream by the skip-ahead method. |
|
Initializes the stream by the advanced skip-ahead method. |
|
Obtains the index of the basic generator responsible for the generation of a given random stream. |
|
Obtains the number of currently registered basic generators. |
Most of the generator-based work comprises three basic steps:
Creating and initializing a stream (vslNewStream, vslNewStreamEx, vslCopyStream, vslCopyStreamState, vslLeapfrogStream, vslSkipAheadStream, vslSkipAheadStreamEx).
Generating random numbers with given distribution, see Distribution Generators.
Deleting the stream (vslDeleteStream).
Note that you can concurrently create multiple streams and obtain random data from one or several generators by using the stream state. You must use the vslDeleteStream function to delete all the streams afterwards.