mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
sort.sort
mir
ndslice
sorting
sort
Sort for one-dimensional Series.
Slice
!(
Iterator
,
N
,
kind
)
sort
(Slice!(Iterator, N, kind) slice)
T
[]
sort
(T[] ar)
Series
!(
IndexIterator
,
Iterator
,
N
,
kind
)
sort
(Series!(IndexIterator, Iterator, N, kind) series)
template
sort
(alias less = "a < b")
@
optmath
static if
(
__traits(isSame, naryFun!less, less)
)
@
optmath
Series
!(
IndexIterator
,
Iterator
,
N
,
kind
)
sort
(
IndexIterator
Iterator
size_t
N
SliceKind
kind
)
(
Series
!(
IndexIterator
,
Iterator
,
N
,
kind
)
series
)
if
(
N
== 1
)
Series
!(
IndexIterator
,
Iterator
,
N
,
kind
)
sort
(Series!(IndexIterator, Iterator, N, kind) series, Slice!SortIndexIterator indexBuffer, Slice!DataIterator dataBuffer)
alias
sort
=
.
sort
!(
naryFun
!
less
)
Meta
Source
See Implementation
mir
ndslice
sorting
sort
functions
sort
Sort for one-dimensional Series.