Permutation Constructor
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.6
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.6
Overload List
Permutation( | Constructs a new Permutation. |
Permutation(Int32[]) | Constructs a new permutation. |
Permutation(Int32)
Constructs a new Permutation.
Permutation(Int32[])
Constructs a new permutation.
public Permutation(
int[] indexes
)
Parameters
- indexes Int32[]
- An integer array containing the permuted indices.
Remarks
The ith element of the indexes array contains the index of the element that ends up in the ith position when the permutation is applied to a collection.
Exceptions
Argument | indexes is null. |
Argument | One or more of the elements of indexes is less than zero or greater than or equal to the length of indexes. -or- indexes does not include all numbers from 0 to 1 less than the length of indexes exactly once. |