Matrix.opBinary

Multiply two matrices.

Given a matrix of size (m, n) and a matrix of size (o, p). This operation can only work if n == o. The resulting matrix will be size (m, p).

  1. Matrix!Number opBinary(ref const Matrix!OtherNumber other)
  2. Matrix!Number opBinary(const Matrix!OtherNumber other)
  3. Matrix!Number opBinary(ref const Matrix!OtherNumber other)
  4. Matrix!Number opBinary(const Matrix!OtherNumber other)
  5. Matrix!OtherNumber opBinary(ref const Matrix!OtherNumber other)
    struct Matrix(Number)
    @safe pure nothrow
    Matrix!OtherNumber
    opBinary
    const
    (
    string op
    OtherNumber
    )
    (
    ref const Matrix!OtherNumber other
    )
    if (
    (op == "*") &&
    !is(Number == OtherNumber)
    &&
    is(Number : OtherNumber)
    )
    in { assert (this.columnCount == other.rowCount); }
    out (val) { assert (val.rowCount == this.rowCount); assert (val.columnCount == other.columnCount); }
    if (
    isNumeric!Number
    )
  6. Matrix!OtherNumber opBinary(const Matrix!OtherNumber other)
  7. Matrix!Number opBinary(OtherNumber other)

Parameters

other
Type: Matrix!OtherNumber

Another matrix

Return Value

Type: Matrix!OtherNumber

The product of two matrices.

Meta