Sorts a given vector. If the vector is compact (
CopyC#), the
vector is sorted in-place. If the vector is non-compact, a sorted
copy of the vector is returned.
Namespace:
CenterSpace.NMath.Corev.Stride == 1Assembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleVector Sort( DoubleVector v ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Sort ( _ v As DoubleVector _ ) As DoubleVector |
| Visual C++ |
|---|
public: static DoubleVector^ Sort( DoubleVector^ v ) |
Parameters
- v
- Type: CenterSpace.NMath.Core..::.DoubleVector
A vector.
Return Value
Sorted vector.
Remarks
Uses quicksort algorithm.