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#
The Permutation that, when applied to a list, results in the same ordering as applying first to the list, and then applying second.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Permutation Compose(
Permutation second,
Permutation first
)
Parameters
- second Permutation
- The second Permutation.
- first Permutation
- The first Permutation.
Return Value
PermutationThe 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
Argument | first is null.
-or- second is null. |
Argument | The length of first is not equal to the length of second. |