Matrix.opOpAssign

Modify this matrix, adding/subtracting values from another matrix.

  1. void opOpAssign(ref const(Matrix!(OtherNumber, rowCount, columnCount)) other)
  2. void opOpAssign(const(Matrix!(OtherNumber, rowCount, columnCount)) other)
    struct Matrix(Number, size_t _rowCount, size_t _columnCount)
    @safe pure nothrow
    void
    opOpAssign
    (
    string op
    OtherNumber
    )
    (
    const(Matrix!(OtherNumber, rowCount, columnCount)) other
    )
    if (
    (
    op == "+" ||
    op == "-"
    )
    &&
    is(OtherNumber : Number)
    )
    if (
    isNumeric!Number &&
    _rowCount > 0
    &&
    _columnCount > 0
    )

Parameters

other
Type: const(Matrix!(OtherNumber, rowCount, columnCount))

Another matrix with an implicitly convertible numeric type.

Examples

matrix += other_matrix;
matrix -= yet_another_matrix;

Meta