Alters the current matrix at index (i,j) to be equal to A i,j = A i,j + value @param i the row, starting from 0 @param j the column, starting from 0 @param value the value to add to the matrix coordinate
(int i, int j, double value)
| 547 | * @param value the value to add to the matrix coordinate |
| 548 | */ |
| 549 | public void increment(int i, int j, double value) |
| 550 | { |
| 551 | if(Double.isNaN(value) || Double.isInfinite(value)) |
| 552 | throw new ArithmeticException("Can not add a value " + value); |
| 553 | set(i, j, get(i, j)+value); |
| 554 | } |
| 555 | |
| 556 | /** |
| 557 | * Returns the number of rows stored in this matrix |