示例#1
0
 /// <inheritdoc/>
 public override double getEntry(int row, int column)
 {
     MatrixUtils.checkMatrixIndex(this, row, column);
     return(row == column ? data[row] : 0);
 }
示例#2
0
 /// <inheritdoc/>
 public new void multiplyEntry(int row, int column, double factor)
 {
     MatrixUtils.checkMatrixIndex(this, row, column);
     data[row][column] *= factor;
 }
示例#3
0
 /// <inheritdoc/>
 public new void addToEntry(int row, int column, double increment)
 {
     MatrixUtils.checkMatrixIndex(this, row, column);
     data[row][column] += increment;
 }
示例#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);
 }