| 254 | } |
| 255 | |
| 256 | Matrix MatrixSubset(const Matrix &input, |
| 257 | unsigned startRow, unsigned numRows, |
| 258 | unsigned startCol, unsigned numCols) |
| 259 | { |
| 260 | Matrix M(numRows, numCols); |
| 261 | for(unsigned i = 0; i < numRows; i++) |
| 262 | for(unsigned j = 0; j < numCols; j++) |
| 263 | M[i][j] = input[startRow+i][startCol+j]; |
| 264 | return M; |
| 265 | } |
| 266 | |
| 267 | Matrix MatrixConcatenateCols(const Matrix& left, const Matrix& right) |
| 268 | { |