| 50 | } |
| 51 | |
| 52 | Sparse_matrix |
| 53 | LDPC_matrix_handler ::read(const std::string& filename, Positions_vector* info_bits_pos, std::vector<bool>* pct_pattern) |
| 54 | { |
| 55 | std::ifstream file(filename); |
| 56 | if (!file.is_open()) |
| 57 | { |
| 58 | std::stringstream message; |
| 59 | message << "'filename' couldn't be opened ('filename' = " << filename << ")."; |
| 60 | throw spu::tools::invalid_argument(__FILE__, __LINE__, __func__, message.str()); |
| 61 | } |
| 62 | |
| 63 | return read(file, info_bits_pos, pct_pattern); |
| 64 | } |
| 65 | |
| 66 | Sparse_matrix |
| 67 | LDPC_matrix_handler ::read(std::ifstream& file, Positions_vector* info_bits_pos, std::vector<bool>* pct_pattern) |
nothing calls this directly
no test coverage detected