Permutation.Compose Method

Returns the composition of two permutations.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Permutation Compose(
	Permutation second,
	Permutation first
)

Parameters

second  Permutation
The second Permutation.
first  Permutation
The first Permutation.

Return Value

Permutation
The Permutation that, when applied to a list, results in the same ordering as applying first to the list, and then applying second.

Remarks

The two permutations must have the same length.

Exceptions

ArgumentNullExceptionfirst is null.

-or-

second is null.

ArgumentException The length of first is not equal to the length of second.

See Also