minmaxIndex.minmaxIndex

  1. 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
    )
  2. 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