| 16 | { |
| 17 | template <typename T> |
| 18 | static std::vector<T> loadCSVDataFile(std::ifstream& stream) |
| 19 | { |
| 20 | std::vector<T> vec; |
| 21 | |
| 22 | std::string line; |
| 23 | if (stream.is_open()) { |
| 24 | while (std::getline(stream, line)) |
| 25 | vec.push_back(static_cast<T>(std::stod(line))); |
| 26 | |
| 27 | stream.close(); |
| 28 | } |
| 29 | |
| 30 | return vec; |
| 31 | } |
| 32 | |
| 33 | template <typename T> |
| 34 | static std::vector<std::vector<T>> convert_1d_to_2d(std::vector<T> flattened_vec, int rows, int cols) |
nothing calls this directly
no outgoing calls
no test coverage detected