Matrix.opBinary

  1. Matrix opBinary(T factor)
    struct Matrix(T, ubyte R, ubyte C = R, MatrixOrder O = CurrentMatrixOrder)
    pure nothrow const @safe @nogc
    static if(O == MatrixOrder.RowMajor)
    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

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

Meta