find.find

  1. Select!(DimensionCount!(Slices[0]) > 1, size_t[DimensionCount!(Slices[0])], size_t) find(Slices slices)
    template find(alias pred)
    @optmath
    static if(__traits(isSame, naryFun!pred, pred))
    @optmath
    Select!(DimensionCount!(Slices[0]) > 1, size_t[DimensionCount!(Slices[0])], size_t)
    find
    (
    Slices...
    )
    (
    auto ref Slices slices
    )
    if (
    Slices.length &&
    allSatisfy!(hasShape, Slices)
    )
  2. alias find = .find!(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 backward index such that the predicate is true. Backward index equals zeros, if the predicate evaluates false for all indices. Constraints: All slices must have the same shape.

Meta