mir-algorithm — Libmir Archive
← Libmir Archive
Dlang.org
minmaxIndex.minmaxIndex
mir
algorithm
iteration
minmaxIndex
template
minmaxIndex
(alias pred = "a < b")
@
fmamath
static if
(
__traits(isSame, naryFun!pred, pred)
)
@
fmamath
size_t
[
N
][2]
minmaxIndex
(
Iterator
size_t
N
SliceKind
kind
)
(
Slice
!(
Iterator
,
N
,
kind
)
slice
)
Parameters
slice
Slice
!(
Iterator
,
N
,
kind
)
ndslice.
Return Value
Type:
size_t
[
N
][2]
Subslice with minimal (maximal)
first
element.
mir
algorithm
iteration
minmaxIndex
functions
minmaxIndex