| 241 | } |
| 242 | |
| 243 | Matrix MatrixMultiply(const Matrix &left, const Matrix &right) |
| 244 | { |
| 245 | wxASSERT(left.Cols() == right.Rows()); |
| 246 | Matrix M(left.Rows(), right.Cols()); |
| 247 | for(unsigned i = 0; i < left.Rows(); i++) |
| 248 | for(unsigned j = 0; j < right.Cols(); j++) { |
| 249 | M[i][j] = 0.0; |
| 250 | for(unsigned k = 0; k < left.Cols(); k++) |
| 251 | M[i][j] += left[i][k] * right[k][j]; |
| 252 | } |
| 253 | return M; |
| 254 | } |
| 255 | |
| 256 | Matrix MatrixSubset(const Matrix &input, |
| 257 | unsigned startRow, unsigned numRows, |
no test coverage detected