| 90 | |
| 91 | template<typename B> |
| 92 | void |
| 93 | Encoder_LDPC<B>::_check_H_dimensions() |
| 94 | { |
| 95 | if (this->N != (int)this->H.get_n_rows()) |
| 96 | { |
| 97 | std::stringstream message; |
| 98 | message << "The built H matrix has a dimension 'N' different than the given one ('N' = " << this->N |
| 99 | << ", 'H.get_n_rows()' = " << this->H.get_n_rows() << ")."; |
| 100 | throw spu::tools::runtime_error(__FILE__, __LINE__, __func__, message.str()); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | template<typename B> |
| 105 | void |