MCPcopy Create free account
hub / github.com/aff3ct/aff3ct / read

Method read

src/Tools/Code/LDPC/Matrix_handler/LDPC_matrix_handler.cpp:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52Sparse_matrix
53LDPC_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
66Sparse_matrix
67LDPC_matrix_handler ::read(std::ifstream& file, Positions_vector* info_bits_pos, std::vector<bool>* pct_pattern)

Callers

nothing calls this directly

Calls 2

read_info_bits_posFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected