Matrix.opBinary

Define binary operator + and -

  1. Matrix opBinary(Matrix rhs)
    struct Matrix(T, size_t dim_)
    nothrow @nogc pure const
    opBinary
    (
    string op
    )
    (
    auto ref const Matrix rhs
    )
    if (
    (
    op == "+" ||
    op == "-"
    )
    &&
    dim >= 2
    &&
    dim <= 4
    )
    if (
    __traits(isFloating, T) &&
    dim_ >= 2
    &&
    dim_ <= 4
    )
  2. Matrix opBinary(real rhs)
  3. Matrix opBinary(Matrix rhs)
  4. VCol opBinary(VRow rhs)

Meta