The OpenD Programming Language

minIndex.minIndex

template minIndex(alias pred = "a < b")
static if(__traits(isSame, naryFun!pred, pred))
size_t[N]
minIndex
(
Iterator
size_t N
SliceKind kind
)
(
Slice!(Iterator, N, kind) slice
)

Parameters

slice Slice!(Iterator, N, kind)

ndslice.

Return Value

Type: size_t[N]

Multidimensional index such that element is minimal(maximal). Index elements equal to size_t.max, if slice is empty.

Meta