Do more. Code less. Free software for GPU computing.
<scroll to top>

Sort rows of input matrix

Sorting

Sort matrix rows in ascending order. More...

Device pointer interface: Sort 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.
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.

Detailed Description

Sort matrix rows in ascending order.


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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines