Applies an elementary permutation.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Sub Swap ( _
	index1 As Integer, _
	index2 As Integer _
)
C#
public void Swap (
	int index1,
	int index2
)
C++
public:
void Swap (
	int index1, 
	int index2
)

Parameters

index1 (System.Int32)
The index of the first element.
index2 (System.Int32)
The index of the second element.

Remarks

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