Click or drag to resize

NMathFunctionsSort(DoubleVector) Method

Sorts a given vector. If the vector is compact (
C#
v.Stride == 1
), the vector is sorted in-place. If the vector is non-compact, a sorted copy of the vector is returned.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static DoubleVector Sort(
	DoubleVector v
)

Parameters

v  DoubleVector
A vector.

Return Value

DoubleVector
Sorted vector.
Remarks
Uses quicksort algorithm.
See Also