| 103 | |
| 104 | template<typename B> |
| 105 | void |
| 106 | Encoder_LDPC<B>::_encode(const B* U_K, B* X_N, const size_t /*frame_id*/) |
| 107 | { |
| 108 | for (auto i = 0; i < this->N; i++) |
| 109 | { |
| 110 | X_N[i] = 0; |
| 111 | auto& links = this->G.get_cols_from_row(i); |
| 112 | for (unsigned j = 0; j < links.size(); j++) |
| 113 | X_N[i] += U_K[links[j]]; |
| 114 | X_N[i] &= (B)1; // modulo 2 |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | template<typename B> |
| 119 | bool |
nothing calls this directly
no outgoing calls
no test coverage detected