Permutation.Swap Method

Applies an elementary permutation.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public void Swap(
	int index1,
	int index2
)

Parameters

index1  Int32
The index of the first element.
index2  Int32
The index of the second element.

Remarks

Use this method extends the existing permutation by swapping the elements with index index1 and index2.

See Also