VI_sort | VBI_sort | VSI_sort | VLI_sort | VQI_sort | |
VU_sort | VUB_sort | VUS_sort | VUL_sort | VUQ_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:UIntSize; dir:Integer ); |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_sort( fVector d_Y, fVector d_X, ui size, int dir );
void VFcu_sort( fVector h_Y, fVector h_X, ui size, int dir );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_sort( d_Y, d_X:fVector; size:UIntSize; dir:Integer ): IntBool;
procedure VFcu_sort( h_Y, h_X:fVector; size:UIntSize; 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. |
|
|
|
|