Matrix.opBinary

  1. Matrix opBinary(T fprimitive)
  2. ColumnType opBinary(RowType x)
  3. auto opBinary(U x)
    struct Matrix(T, ubyte R, ubyte C = R)
    const
    opBinary
    (
    string op
    U
    )
    (
    U x
    )
    if (
    (U.rowCount == C)
    &&
    (op == "*")
    )
    if (
    R >= 2 &&
    R <= 4
    &&
    C >= 2
    &&
    C <= 4
    )
  4. Matrix opBinary(U rhs)

Examples

auto m1 = Matrix2I(2, 5, /**/ -1, 2);
auto m2 = Matrix2x3I(3, 3, -2, /**/ 3, 4, 3);
auto m3 = m1 * m2;
assert(m3.v == [21, 26, 11, /**/ 3, 5, 8]);

Meta