eachUpper.eachUpper

  1. void eachUpper(Inputs inputs)
    template eachUpper(alias fun)
    @optmath
    static if(__traits(isSame, naryFun!fun, fun))
    void
    eachUpper
    (
    Inputs...
    )
    (
    scope Inputs inputs
    )
    if (
    (
    (Inputs.length > 1) &&
    (isIntegral!(Inputs[$ - 1]))
    )
    ||
    (Inputs.length)
    )
  2. alias eachUpper = .eachUpper!(naryFun!fun)

Parameters

inputs Inputs

One or more two-dimensional slices and an optional integer, k.

The value k determines which diagonals will have the function applied: For k = 0, the function is also applied to the main diagonal For k = 1 (default), only the non-main diagonals above the main diagonal will have the function applied. For k > 1, fewer diagonals below the main diagonal will have the function applied. For k < 0, more diagonals above the main diagonal will have the function applied.

Meta