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

Check if array is sorted

Sorting

Check if a vector or matrix is sorted. More...

Device pointer interface: Check if the input is sorted

Parameters:
[out]resNonzero iff sorted
[in]rowsnumber of rows (first dimension)
[in]colsnumber of columns (second dimension)
[in]d_inInput array
[in]is_rowTrue if rows of matrix are sorted, otherwise false.
[in]batchNumber of tiles in batch.

afError af_issorted_S (unsigned char *res, unsigned rows, unsigned cols, const float *d_in, bool is_row, unsigned batch)
 Single-precision issorted.
afError af_issorted_D (unsigned char *res, unsigned rows, unsigned cols, const double *d_in, bool is_row, unsigned batch)
 Double-precision issorted.

Detailed Description

Check if a vector or matrix is sorted.


Function Documentation

afError af_issorted_S ( unsigned char *  res,
unsigned  rows,
unsigned  cols,
const float *  d_in,
bool  is_row,
unsigned  batch 
)

Single-precision issorted.

afError af_issorted_D ( unsigned char *  res,
unsigned  rows,
unsigned  cols,
const double *  d_in,
bool  is_row,
unsigned  batch 
)

Double-precision issorted.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines