Description Usage Arguments Details Value References Examples
Sorts a numeric vector into ascending or descending order.
1 | rthsort(x, decreasing = FALSE, inplace = FALSE, nthreads = rth.nthreads())
|
x |
a numeric vector |
decreasing |
logical; determines if the sort is ascending
( |
inplace |
If TRUE, |
nthreads |
An optional argument for specifying the number of threads (in the case of OpenMP or TBB backends) that the routine should (at most) use. Does nothing with a CUDA backend. See nthreads. |
The implementation uses thrust::sort
, which does not necessarily
preserve the order of tied values.
If decreasing=FALSE
, then the input vector is returned in
ascending order. Otherwise, the input vector is returned in descending
order.
If inplace
is TRUE, there is no return value.
http://thrust.github.io/doc/group__sorting.html
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.