Example #1
0
 /// <inheritdoc/>
 public override double getEntry(int row, int column)
 {
     MatrixUtils.checkMatrixIndex(this, row, column);
     return(row == column ? data[row] : 0);
 }
Example #2
0
 /// <inheritdoc/>
 public new void multiplyEntry(int row, int column, double factor)
 {
     MatrixUtils.checkMatrixIndex(this, row, column);
     data[row][column] *= factor;
 }
Example #3
0
 /// <inheritdoc/>
 public new void addToEntry(int row, int column, double increment)
 {
     MatrixUtils.checkMatrixIndex(this, row, column);
     data[row][column] += increment;
 }
Example #4
0
 /// <inheritdoc/>
 public override void setEntry(int row, int column, double value)
 {
     MatrixUtils.checkMatrixIndex(this, row, column);
     data[row][column] = value;
 }
 /// <inheritdoc/>
 public void multiplyEntry(int row, int column, double factor)
 {
     MatrixUtils.checkMatrixIndex(this, row, column);
     setEntry(row, column, getEntry(row, column) * factor);
 }
 /// <inheritdoc/>
 public void addToEntry(int row, int column, double increment)
 {
     MatrixUtils.checkMatrixIndex(this, row, column);
     setEntry(row, column, getEntry(row, column) + increment);
 }