Matrix.opBinary

Binary operator between the same size matrix ("+" or "-"). Another type matrix is allowed.

  1. Matrix!(CommonType!(T, S), U, V) opBinary(Matrix!(S, U, V) m)
    struct Matrix(T, uint U, uint V)
    const
    Matrix!(CommonType!(T, S), U, V)
    opBinary
    (
    string op
    S
    )
    (
    Matrix!(S, U, V) m
    )
    if (
    op == "+" ||
    op == "-"
    )
    if (
    __traits(isArithmetic, T)
    )
  2. Matrix!(CommonType!(T, S), U, P) opBinary(Matrix!(S, V, P) m)
  3. Matrix!(CommonType!(T, S), U, V) opBinary(S e)
  4. Vector!(CommonType!(T, S), U) opBinary(Vector!(S, V) v)

Parameters

m Matrix!(S, U, V)

target matrix

Return Value

Type: Matrix!(CommonType!(T, S), U, V)

calculated matrix

Meta