Represents a permutation, a rearrangement of the elements of a set or collection.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class Permutation |
| C# |
|---|
public class Permutation |
| C++ |
|---|
public ref class Permutation |
Methods
| Icon | Type | Description |
|---|---|---|
| Apply<(Of T>)(IList<(Of T>)) |
Applies the permutation to a list.
| |
| Apply(GeneralMatrix) |
Applies the permutation to the rows of a GeneralMatrix.
| |
| Apply(Vector) |
Applies the permutation to the components of a Vector.
| |
| ApplyInverse<(Of T>)(IList<(Of T>)) |
Applies the inverse permutation to a list.
| |
| ApplyInverse(GeneralMatrix) |
Applies the inverse permutation to the rows of a GeneralMatrix.
| |
| ApplyInverse(Vector) |
Applies the inverse permutation to the components of a Vector.
| |
| Equals(Object) | ||
| Finalize() | ||
| GetHashCode() | Serves as a hash function for a particular type. | |
| GetInverse() |
Returns the inverse of this Permutation.
| |
| GetType() | Gets the Type of the current instance. | |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| Swap(Int32, Int32) |
Applies an elementary permutation.
| |
| ToString() |
Returns a String representation of the permutation.
|
Constructors
| Icon | Type | Description |
|---|---|---|
| PermutationNew(Int32) |
Constructs a new Permutation.
|
Properties
| Icon | Type | Description |
|---|---|---|
| IsEven |
Gets whether the permutation is composed of an even number of elementary permutations.
| |
| Item(Int32) |
Gets the position of an element after applying the permutation.
| |
| Length |
Gets the length of the permutation.
|
Remarks
Use the Permutation class to represent any rearrangement of the elements of a set or collection.