| VI_sort | VBI_sort | VSI_sort | VLI_sort | VQI_sort |
| VU_sort | VUB_sort | VUS_sort | VUL_sort | VUI_sort |
|
| Function | Sorting into ascending or descending order |
|
| Syntax C/C++ | #include <VFstd.h>
void VF_sort( fVector Y, fVector X, ui size, int dir ); |
| C++ VecObj | #include <OptiVec.h>
void vector<T>::sort( const vector<T>& X, int dir=1 ); |
| Pascal/Delphi | uses VFstd;
procedure VF_sort( Y, X:fVector; size:UInt; dir:Integer ); |
|
| Description | The vector is sorted in ascending order, if dir is positive; negative dir yields descending order. The present implementation uses the "Heapsort" algorithm. |
|
|
|
|