Dense Vector<T, TStorage>.Top Method
Returns a vector containing the specified number of elements
from the top of the sorted vector.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
A vector containing the first count values from the vector when sorted.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
public override Vector<T> Top(
int count,
SortOrder sortOrder
)
Parameters
- count Int32
- The number of values to return.
- sortOrder SortOrder
- A SortOrder value that specifies whether the elements should be sorted in ascending or descending order.
Return Value
Vector<T>A vector containing the first count values from the vector when sorted.