Permutation.Compose Method
Returns the composition of two permutations.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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. |