| 265 | } |
| 266 | |
| 267 | Matrix MatrixConcatenateCols(const Matrix& left, const Matrix& right) |
| 268 | { |
| 269 | wxASSERT(left.Rows() == right.Rows()); |
| 270 | Matrix M(left.Rows(), left.Cols() + right.Cols()); |
| 271 | for(unsigned i = 0; i < left.Rows(); i++) { |
| 272 | for(unsigned j = 0; j < left.Cols(); j++) |
| 273 | M[i][j] = left[i][j]; |
| 274 | for(unsigned j = 0; j < right.Cols(); j++) |
| 275 | M[i][j+left.Cols()] = right[i][j]; |
| 276 | } |
| 277 | return M; |
| 278 | } |
| 279 | |
| 280 | Matrix TransposeMatrix(const Matrix& other) |
| 281 | { |
no test coverage detected