Matrix.opBinary

//////////// //////////// Component-wise binary matrix-scalar operation: addition, subtraction, multiplication, division

  1. auto opBinary(T s)
    struct Matrix(type, int numCols, int numRows)
    nothrow @nogc pure nothrow @nogc pure nothrow @nogc @safe @safe pure nothrow const
    opBinary
    (
    string op
    T
    )
    (
    T s
    )
    if (
    isNumeric!T &&
    (
    (op == "+") ||
    (op == "-")
    ||
    (op == "*")
    ||
    (op == "/")
    )
    )
    if (
    (numCols > 1) &&
    (numRows > 1)
    )
  2. auto opBinary(V vec)
  3. Matrix opBinary(Matrix mat)
  4. Matrix opBinary(M mat)

Meta