Matrix.opBinary

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

Examples

const m1 = Matrix2I(3);
const m2 = m1 * 4;
assert(m2.v == [12, 12, /**/ 12, 12]);

Meta