Permutation.Swap Method
Applies an elementary permutation.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
public void Swap(
int index1,
int index2
)
Parameters
Remarks
Use this method extends the existing permutation by swapping the elements with index index1 and index2.