pyldpc.make_ldpc¶
-
pyldpc.
make_ldpc
(n_code, d_v, d_c, systematic=False, sparse=True, seed=None)[source]¶ Create an LDPC coding and decoding matrices H and G.
- Parameters
- n_code: int, Length of the codewords.
- d_v: int, Number of parity-check equations including a certain bit.
- d_c: int, Number of bits in the same parity-check equation. d_c Must be
greater or equal to d_v and must divide n.
- seed: int, seed of the random generator.
- systematic: boolean, default False. if True, constructs a systematic
- coding matrix G.