mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
sort.sort
mir
ndslice
sorting
sort
Sort for n-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)
Series
!(
IndexIterator
,
Iterator
,
N
,
kind
)
sort
(Series!(IndexIterator, Iterator, N, kind) series, Slice!SortIndexIterator indexBuffer, Slice!DataIterator dataBuffer)
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
SortIndexIterator
DataIterator
)
(
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 n-dimensional Series.