Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator Matrix #1

Open
FranzForstmayr opened this issue Jul 16, 2021 · 1 comment
Open

Generator Matrix #1

FranzForstmayr opened this issue Jul 16, 2021 · 1 comment

Comments

@FranzForstmayr
Copy link

Is there any documentation about the tests/code/h.txt and tests/code/g.txt file formats?

I'm not that deep in LDPC codes yet, however I assume one of the files can be derived from the other.
I would like to use codes from LDPC Database which are in the alist format.

Could you please explain the parameters in tests/code/h.txt and the purpose of tests/code/g.txt?

Thank you
Franz

@heat1q
Copy link
Owner

heat1q commented Aug 19, 2021

tests/code/h.txt is the parity check matrix of a sample (n=1024, k=128) code. tests/code/g.txt is its corresponding generator matrix. You can also specify puncturing or shortening patterns at the top. The other parameters are deprecated and can be ignored.

The file simply lists the row_index and col_index of the non-zero entries of the matrix, eg.

0 0 1 0
0 1 0 0
0 0 0 1
1 1 1 0

would be

0 2
1 1
2 3
3 0
3 1
3 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants