Matrix.opBinary

Processes matrix addition and subtraction.

  1. Self opBinary(Matrix!(Lines, Cols, SumType) summand)
    struct Matrix(size_t Lines, size_t Cols, Type = float)
    @trusted pure nothrow
    Self
    opBinary
    (
    string op
    SumType
    )
    (
    in Matrix!(Lines, Cols, SumType) summand
    )
    if (
    (
    op == "+" ||
    op == "-"
    )
    &&
    is(SumType : Type)
    )
    if (
    Lines > 0 &&
    Cols > 0
    )
  2. Self opBinary(Number num)
  3. auto opBinary(Factor factor)

Meta