@Override public final void minusEquals( final DiagonalMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); for (int i = 0; i < numRows; ++i) { this.rows[i].values[i] -= other.get(i, i); } }
@Override public final void minusEquals( final DiagonalMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); for (int i = 0; i < numRows; ++i) { this.rows[i].values[i] -= other.get(i, i); } }
@Override public final void plusEquals( final DiagonalMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); for (int i = 0; i < numRows; ++i) { this.rows[i].values[i] += other.get(i, i); } }
@Override public final void plusEquals( final DiagonalMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); for (int i = 0; i < numRows; ++i) { this.rows[i].values[i] += other.get(i, i); } }
@Override public final void minusEquals( final DiagonalMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); for (int i = 0; i < numRows; ++i) { this.rows[i].values[i] -= other.get(i, i); } }
@Override public void scaledPlusEquals( final DiagonalMatrix other, final double scaleFactor) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); for (int i = 0; i < numRows; ++i) { this.rows[i].values[i] += other.get(i, i) * scaleFactor; } }
@Override public void scaledPlusEquals( final DiagonalMatrix other, final double scaleFactor) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); for (int i = 0; i < numRows; ++i) { this.rows[i].values[i] += other.get(i, i) * scaleFactor; } }
@Override public final void plusEquals( final DiagonalMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); for (int i = 0; i < numRows; ++i) { this.rows[i].values[i] += other.get(i, i); } }
@Override public void scaledPlusEquals( final DiagonalMatrix other, final double scaleFactor) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); for (int i = 0; i < numRows; ++i) { this.rows[i].values[i] += other.get(i, i) * scaleFactor; } }
@Override public final void plusEquals( final DenseMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] += other.rows[i].values[j]; } } }
@Override public final void plusEquals( final DenseMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] += other.rows[i].values[j]; } } }
@Override public final void minusEquals( final DenseMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] -= other.rows[i].values[j]; } } }
@Override public final void minusEquals( final DenseMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] -= other.rows[i].values[j]; } } }
@Override public final void dotTimesEquals( final DenseMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] *= other.rows[i].values[j]; } } }
@Override public void scaledPlusEquals( final DenseMatrix other, final double scaleFactor) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] += other.rows[i].values[j] * scaleFactor; } } }
@Override public final void minusEquals( final DenseMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] -= other.rows[i].values[j]; } } }
@Override public final void dotTimesEquals( final DenseMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] *= other.rows[i].values[j]; } } }
@Override public final void plusEquals( final DenseMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] += other.rows[i].values[j]; } } }
@Override public final void dotTimesEquals( final DenseMatrix other) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] *= other.rows[i].values[j]; } } }
@Override public void scaledPlusEquals( final DenseMatrix other, final double scaleFactor) { this.assertSameDimensions(other); final int numRows = this.getNumRows(); final int numColumns = this.getNumColumns(); for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numColumns; ++j) { this.rows[i].values[j] += other.rows[i].values[j] * scaleFactor; } } }