Permutation.Compose Method

Returns the composition of two permutations.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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

ArgumentNullException

first is null.

-or-

second is null.

ArgumentException

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

See Also