Permutation Constructor

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Permutation(Int32) Constructs a new Permutation.
Permutation(Int32[]) Constructs a new permutation.

Permutation(Int32)

Constructs a new Permutation.
C#
public Permutation(
	int length
)

Parameters

length  Int32
The number of elements in the set.

Permutation(Int32[])

Constructs a new permutation.
C#
public Permutation(
	int[] indexes
)

Parameters

indexes  Int32[]
An integer array containing the permuted indices.

Exceptions

ArgumentNullExceptionindexes is null.
ArgumentException 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.

See Also