Dahlia-Han / LDPC

Simulation for a given LDPC matrix.
MIT License
4 stars 1 forks source link

校验矩阵的原始文件/Matrix H(364,236) file #1

Open haocat opened 3 years ago

haocat commented 3 years ago

Hello,I'm learning the knowledge of ldpc codes.Your codes in github really helps me a lot. Would you to upload the Matrix H(364,236) you used in the program in the file format of alist or matrix,since I get some trouble of learn the program in the part of read Matrix H 。 Best whishes!

学长/学姐您好,我是一名在读本科生,最近在学习LDPC编码的知识。很开心能在您的Github上学到关于LDPC知识。 想请教一下您CheckMatrix.cpp里的从文本文件中读取校验矩阵H(364,236)的部分中,使用的校验矩阵H(364,236)可以上传alist文件形式或者0/1矩阵格式吗,(因为我在test的时候发现自己不是很能够理解这个文本文件具体代表了一个怎么样的校验矩阵,对于读取的操作还有些不理解,希望能够得到矩阵的原始形式进行参考) 顺祝春安~

Dahlia-Han commented 3 years ago

你好, 很高兴你能够对LDPC码感兴趣。

我的代码中并没有支持alist文件格式,输入格式是我自己写的。 假如矩阵如下,我用大于0的数字表示矩阵中的非零元素 [1,4,7,0; 2,0,8,11; 3,0,9,12]

对应的输入文件in.txt为 3 4 9 0 1 2 3 6 7 8 10 11

以上in.txt中的变量含义依次为 矩阵行数、列数、非零元素数、非零元素位置; 其中位置是矩阵向量化后的索引,末尾加一个空格或者换行。 你可以对照上面的格式看一下K128R0.4.txt文件。

haocat commented 3 years ago

好的,十分感谢~