Matrix.opBinary

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

  1. auto opBinary(T s)
    struct Matrix(type, int numCols, int numRows)
    @safe pure nothrow
    opBinary
    const
    (
    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