Sort an array of values along specified dimension. More...
Device pointer interface: Sort the input values | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
afError | af_sort_S (float *d_sorted, float *d_Indices, unsigned ndims, const unsigned *dims, float *d_input, bool DIR, unsigned dim, unsigned batch, bool base_one=false) | |||||||||||||||||||||||||||
Single-precision sort. | ||||||||||||||||||||||||||||
afError | af_sort_D (double *d_sorted, double *d_Indices, unsigned ndims, const unsigned *dims, double *d_input, bool DIR, unsigned dim, unsigned batch, bool base_one=false) | |||||||||||||||||||||||||||
Double-precision sort. | ||||||||||||||||||||||||||||
afError | af_sort_I (int *d_sorted, int *d_Indices, unsigned ndims, const unsigned *dims, int *d_input, bool DIR, unsigned dim, unsigned batch, bool base_one=false) | |||||||||||||||||||||||||||
32-bit Integer sort. | ||||||||||||||||||||||||||||
afError | af_sort_U (unsigned *d_sorted, unsigned *d_Indices, unsigned ndims, const unsigned *dims, unsigned *d_input, bool DIR, unsigned dim, unsigned batch, bool base_one=false) | |||||||||||||||||||||||||||
32-bit Unsigned Integer sort. |
Sort an array of values along specified dimension.
Output both values and indices.
afError af_sort_S | ( | float * | d_sorted, |
float * | d_Indices, | ||
unsigned | ndims, | ||
const unsigned * | dims, | ||
float * | d_input, | ||
bool | DIR, | ||
unsigned | dim, | ||
unsigned | batch, | ||
bool | base_one = false |
||
) |
Single-precision sort.
afError af_sort_D | ( | double * | d_sorted, |
double * | d_Indices, | ||
unsigned | ndims, | ||
const unsigned * | dims, | ||
double * | d_input, | ||
bool | DIR, | ||
unsigned | dim, | ||
unsigned | batch, | ||
bool | base_one = false |
||
) |
Double-precision sort.
afError af_sort_I | ( | int * | d_sorted, |
int * | d_Indices, | ||
unsigned | ndims, | ||
const unsigned * | dims, | ||
int * | d_input, | ||
bool | DIR, | ||
unsigned | dim, | ||
unsigned | batch, | ||
bool | base_one = false |
||
) |
32-bit Integer sort.
afError af_sort_U | ( | unsigned * | d_sorted, |
unsigned * | d_Indices, | ||
unsigned | ndims, | ||
const unsigned * | dims, | ||
unsigned * | d_input, | ||
bool | DIR, | ||
unsigned | dim, | ||
unsigned | batch, | ||
bool | base_one = false |
||
) |
32-bit Unsigned Integer sort.