(Vec b, double z, Vec c)
| 146 | } |
| 147 | |
| 148 | @Override |
| 149 | public void multiply(Vec b, double z, Vec c) |
| 150 | { |
| 151 | if(this.cols() != b.length()) |
| 152 | throw new ArithmeticException("Matrix dimensions do not agree, [" + rows() +"," + cols() + "] x [" + b.length() + ",1]" ); |
| 153 | if(this.rows() != c.length()) |
| 154 | throw new ArithmeticException("Target vector dimension does not agree with matrix dimensions. Matrix has " + rows() + " rows but tagert has " + c.length()); |
| 155 | |
| 156 | for(int i = 0; i < rows(); i++) |
| 157 | { |
| 158 | SparseVector row = rows[i]; |
| 159 | c.increment(i, row.dot(b)*z); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | @Override |
| 164 | public void multiply(Matrix B, Matrix C) |
nothing calls this directly
no test coverage detected