public @optmath template minPos(alias pred = "a < b")

Finds a backward index such that

slice.backward(index)
is minimal(maximal).

Parameters

pred

A predicate.

See Also:

, , , .

Functions

minPosReturns:

Multidimensional backward index such that element is minimal(maximal). Backward index equals zeros, if slice is empty.