| 90 | |
| 91 | |
| 92 | void DenseVector::timesMatrix(DenseVector &v, const DenseVector *w) const { |
| 93 | |
| 94 | const int dim = w[0].getSize(); |
| 95 | v.alloc( dim ); |
| 96 | for (int cnt = 0; cnt < dim; ++cnt) |
| 97 | { |
| 98 | double s = 0; |
| 99 | for (int cp = 0; cp < this->getSize(); ++cp) |
| 100 | s += this->getValue(cp) * w[cp].getValue(cnt); |
| 101 | v.setAt( cnt, s ); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | |
| 106 |
no test coverage detected