RandomStreamPartition<TRandom>.Branch Method

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0

Overload List

Branch(UInt64) Creates a child stream source at the specified index without advancing this source.
Branch(UInt64, JumpStride) Creates a child stream source at the specified index with a specific stride.

Branch(UInt64, JumpStride)

Creates a child stream source at the specified index with a specific stride.
C#
public IRandomStreamSource<TRandom> Branch(
	ulong index,
	JumpStride childStride
)

Parameters

index  UInt64
The child index for the new scope.
childStride  JumpStride
The jump stride for the child partition.

Return Value

IRandomStreamSource<TRandom>
A new stream partition with path Path + [index] and the specified stride.

Remarks

This overload allows changing the stride when branching, enabling hierarchical partitioning patterns like using LongJump for processes and Jump for threads within processes.

See Also