"Source: Text/Code/CodeLDPC.text";
"Line: 207";
"Date: Thu Sep 25 14:47:47 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Code/CodeLDPC.text, line: 207
// Example: H167E2 ()
print "Example: H167E2";
ei := GetEchoInput();
SetEchoInput(true);
C := RandomLinearCode(GF(2),100,50);
IsLDPC(C);
assert not $1;
H := SparseMatrix(ParityCheckMatrix(C));
H;
AssignLDPCMatrix(~C, H);
IsLDPC(C);
assert $1;
LDPCDensity(C);
C1 := RegularLDPCEnsemble(100,3,6);  
C1:Minimal;
LDPCDensity(C1);
SetEchoInput(ei);
