(double c, Matrix b)
| 40 | abstract protected Matrix getMatrixOfSameType(int rows, int cols); |
| 41 | |
| 42 | @Override |
| 43 | public void mutableAdd(double c, Matrix b) |
| 44 | { |
| 45 | if(!sameDimensions(this, b)) |
| 46 | throw new ArithmeticException("Matrix dimensions do not agree"); |
| 47 | |
| 48 | for(int i = 0; i < rows(); i++) |
| 49 | for(int j = 0; j < cols(); j++) |
| 50 | increment(i, j, c*b.get(i, j)); |
| 51 | } |
| 52 | |
| 53 | @Override |
| 54 | public void mutableAdd(final double c, final Matrix b, ExecutorService threadPool) |