The C interface for sortrows. More...

Device pointer interface: Sort rows in ascending order

Sort matrix rows in ascending order

Parameters
[out]d_YSorted output array
[out]d_IIndexed rows
[in]rowsnumber of rows in input matrix (first dimension)
[in]colsnumber of columns in input matrix(second dimension)
[in]d_XInput array
[in]numel_CNumber of elements in vector C
[in]h_CVector specifying order of sort for a column. Must be on host
afError af_sortrows_S (float *d_Y, unsigned *d_I, unsigned rows, unsigned cols, const float *d_X, unsigned numel_C, const int *h_C)
 Single-precision issorted. More...
 
afError af_sortrows_D (double *d_Y, unsigned *d_I, unsigned rows, unsigned cols, const double *d_X, unsigned numel_C, const int *h_C)
 Double-precision issorted. More...
 

Device pointer interface: Sort by keys

Sort matrix using a key matrix

Parameters
[out]d_okeyssorted keys
[out]d_Isorted values
[in]numelnumber of elements
[in]d_ikeysinput matrix of keys
[in]d_ivalsinput matrix of values to be sorted
[in]batchnumber of tiles in the batch
[in]directionof sort (descending = true, ascending = false)
afError af_sortByKeys_S (float *d_okeys, float *d_ovals, unsigned numel, float *d_ikeys, float *d_ivals, unsigned batch, bool DIR)
 
afError af_sortByKeys_D (double *d_okeys, double *d_ovals, unsigned numel, double *d_ikeys, double *d_ivals, unsigned batch, bool DIR)
 

Detailed Description

The C interface for sortrows.

The C interface for sortByKeys.

Function Documentation

afError af_sortrows_S ( float *  d_Y,
unsigned *  d_I,
unsigned  rows,
unsigned  cols,
const float *  d_X,
unsigned  numel_C,
const int *  h_C 
)

Single-precision issorted.

afError af_sortrows_D ( double *  d_Y,
unsigned *  d_I,
unsigned  rows,
unsigned  cols,
const double *  d_X,
unsigned  numel_C,
const int *  h_C 
)

Double-precision issorted.

afError af_sortByKeys_S ( float *  d_okeys,
float *  d_ovals,
unsigned  numel,
float *  d_ikeys,
float *  d_ivals,
unsigned  batch,
bool  DIR 
)
afError af_sortByKeys_D ( double *  d_okeys,
double *  d_ovals,
unsigned  numel,
double *  d_ikeys,
double *  d_ivals,
unsigned  batch,
bool  DIR 
)