| 326 | } |
| 327 | |
| 328 | std::vector<double> unique(const std::vector<double> &x) { |
| 329 | std::set<double> s; |
| 330 | for (const auto &v : x) { |
| 331 | s.emplace(v); |
| 332 | } |
| 333 | std::vector<double> u(s.begin(), s.end()); |
| 334 | return u; |
| 335 | } |
| 336 | |
| 337 | std::vector<double> reshape(const std::vector<std::vector<double>> &X) { |
| 338 | std::vector<double> x; |
no test coverage detected