mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
minmaxIndex.minmaxIndex
mir
algorithm
iteration
minmaxIndex
size_t
[
N
][
2
]
minmaxIndex
(Slice!(Iterator, N, kind) slice)
template
minmaxIndex
(alias pred = "a < b")
@
optmath
static if
(
__traits(isSame, naryFun!pred, pred)
)
@
optmath
size_t
[
N
][2]
minmaxIndex
(
Iterator
size_t
N
SliceKind
kind
)
(
Slice
!(
Iterator
,
N
,
kind
)
slice
)
alias
minmaxIndex
=
.
minmaxIndex
!(
naryFun
!
pred
)
Parameters
slice
Slice
!(
Iterator
,
N
,
kind
)
ndslice.
Return Value
Type:
size_t
[
N
][2]
Subslice with minimal (maximal)
first
element.
Meta
Source
See Implementation
mir
algorithm
iteration
minmaxIndex
functions
minmaxIndex