| NMathFunctionsSort(DoubleVector) Method |
Sorts a given vector. If the vector is compact (
), the
vector is sorted in-place. If the vector is non-compact, a sorted
copy of the vector is returned.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleVector Sort(
DoubleVector v
)
Public Shared Function Sort (
v As DoubleVector
) As DoubleVector
public:
static DoubleVector^ Sort(
DoubleVector^ v
)
static member Sort :
v : DoubleVector -> DoubleVector
Parameters
- v DoubleVector
- A vector.
Return Value
DoubleVectorSorted vector.
Remarks
Uses quicksort algorithm.
See Also