Vector.Sort<T>(Vector<T>, Sort Order, Permutation) Method
Sorts a vector in the specified order and also returns the sorting permutation.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Vector<T> Sort<T>(
this Vector<T> vector,
SortOrder sortOrder,
out Permutation permutation
)
Parameters
- vector Vector<T>
- The vector to sort.
- sortOrder SortOrder
- A SortOrder value that specifies whether the elements should be sorted in ascending or descending order.
- permutation Permutation
- On return, the Permutation that transforms vector into the sorted result.
Type Parameters
- T