Matrix.opApply

Iterates matrix by element number. E.g. returned number of m[1][2] element in Matrix3x3 iteration will be 5.

  1. int opApply(int delegate(ref Type) foreach_)
  2. int opApply(int delegate(ref size_t, ref Type) foreach_)
    struct Matrix(size_t Lines, size_t Cols, Type = float)
    @trusted
    int
    opApply
    (
    int delegate
    (
    ref size_t
    ,
    ref Type
    )
    foreach_
    )
    if (
    Lines > 0 &&
    Cols > 0
    )
  3. int opApply(int delegate(ref size_t, ref size_t, ref Type) foreach_)

Meta