The C interface for issorted. More...

Device pointer interface: Check if the input is sorted

Check if a vector or matrix 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. More...
 
afError af_issorted_D (unsigned char *res, unsigned rows, unsigned cols, const double *d_in, bool is_row, unsigned batch)
 Double-precision issorted. More...
 
afError af_issorted_I (unsigned char *res, unsigned rows, unsigned cols, const int *d_in, bool is_row, unsigned batch)
 Integer issorted. More...
 
afError af_issorted_U (unsigned char *res, unsigned rows, unsigned cols, const unsigned *d_in, bool is_row, unsigned batch)
 Unsigned issorted. More...
 

Detailed Description

The C interface for issorted.

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.

afError af_issorted_I ( unsigned char *  res,
unsigned  rows,
unsigned  cols,
const int *  d_in,
bool  is_row,
unsigned  batch 
)

Integer issorted.

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

Unsigned issorted.