Sort input arrays.
More...
Sort input arrays.
Sort an multi dimensional array
C Interface for sorting an array.
- Parameters
-
| [out] | out | will contain the sorted output |
| [in] | in | is the input array |
| [in] | dim | The dimension along which numerical difference is performed |
| [in] | isAscending | specifies the sorting order |
- Returns
- AF_SUCCESS if the execution completes properly
| AFAPI array af::sort |
( |
const array & |
in, |
|
|
const unsigned |
dim = 0, |
|
|
const bool |
isAscending = true |
|
) |
| |
C++ Interface for sorting an array.
- Parameters
-
| [in] | in | is the input array |
| [in] | dim | The dimension along which numerical difference is performed |
| [in] | isAscending | specifies the sorting order |
- Returns
- the sorted output
- Examples:
- helloworld/helloworld.cpp.