findIndex.findIndex

  1. Select!(DimensionCount!(Slices[0]) > 1, size_t[DimensionCount!(Slices[0])], size_t) findIndex(Slices slices)
    template findIndex(alias pred)
    @optmath
    static if(__traits(isSame, naryFun!pred, pred))
    @optmath
    Select!(DimensionCount!(Slices[0]) > 1, size_t[DimensionCount!(Slices[0])], size_t)
    findIndex
    (
    Slices...
    )
    (
    Slices slices
    )
    if (
    Slices.length
    )
  2. alias findIndex = .findIndex!(naryFun!pred)

Parameters

slices Slices

One or more slices.

Return Value

Type: Select!(DimensionCount!(Slices[0]) > 1, size_t[DimensionCount!(Slices[0])], size_t)

Multidimensional index such that the predicate is true. Index equals size_t.max, if the predicate evaluates false for all indices. Constraints: All slices must have the same shape.

Meta