| 37 | } |
| 38 | |
| 39 | std::vector<std::vector<double>> denseMatrixToVectorVector(const DenseMatrix &mat) |
| 40 | { |
| 41 | std::vector<std::vector<double>> vec(mat.rows()); |
| 42 | |
| 43 | for(size_t i = 0; i < (size_t) mat.rows(); ++i) |
| 44 | { |
| 45 | for(size_t j = 0; j < (size_t) mat.cols(); ++j) |
| 46 | { |
| 47 | vec.at(i).push_back(mat(i, j)); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | return vec; |
| 52 | } |
| 53 | |
| 54 | DenseMatrix vectorVectorToDenseMatrix(const std::vector<std::vector<double>> &vec) |
| 55 | { |
no outgoing calls
no test coverage detected