Random Sources.Create Streams Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Overload List
| Create | Creates an array of independent, deterministic random sources for parallel processing. |
| Create | Creates an array of independent, deterministic random sources for parallel processing. |
| Create | Creates an array of independent, deterministic random sources of the specified type. |
| Create | Creates an array of independent, deterministic random sources of the specified type. |
CreateStreams(Int32, Int64)
Creates an array of independent, deterministic random sources for parallel processing.
public static Xoshiro256StarStar[] CreateStreams(
int count,
long seed
)Parameters
Return Value
Xoshiro256StarStar[]Remarks
Streams are created as Create(baseSeed, streamId) with streamId in the range [0, count).
CreateStreams<T>(Int32, Int64)
Creates an array of independent, deterministic random sources of the specified type.
public static T[] CreateStreams<T>(
int count,
long seed
)
where T : Object, IRandomSourceFactory<T>
Parameters
Type Parameters
- T
- The random source type to create.
Return Value
T[]An array of reproducible random sources of type T.
CreateStreams(Int32, Int64, StreamAddress)
Creates an array of independent, deterministic random sources for parallel processing.
public static Xoshiro256StarStar[] CreateStreams(
int count,
long seed,
StreamAddress streamAddress
)Parameters
- count Int32
- The number of streams to create.
- seed Int64
- The base seed shared by all streams.
- streamAddress StreamAddress
- Base stream address for all streams.
Return Value
Xoshiro256StarStar[]An array of random source instances of type Xoshiro256StarStar.
CreateStreams<T>(Int32, Int64, StreamAddress)
Creates an array of independent, deterministic random sources of the specified type.
public static T[] CreateStreams<T>(
int count,
long seed,
StreamAddress streamAddress
)
where T : Object, IRandomSourceFactory<T>
Parameters
- count Int32
- The number of streams to create.
- seed Int64
- The base seed shared by all streams.
- streamAddress StreamAddress
- Base stream address for all streams.
Type Parameters
- T
- The random source type to create.
Return Value
T[]An array of reproducible random sources of type T.