"Source: Text/Code/CodeLDPC.text";
"Line: 207";
"Date: Tue Jun  7 22:27:15 2016";
"Main: Thu May 25 10:02:38 2023";
// original file: Text/Code/CodeLDPC.text, line: 207
// Example: H163E2 ()
print "Example: H163E2";
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);
