spielwiese
Last change
on this file since 6fb723 was
894057,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
|
-
Property mode set to
100644
|
File size:
266 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "decodegb.lib"; |
---|
3 | int redun=5; int n=15; |
---|
4 | ring r=2,x,dp; |
---|
5 | //generate random check matrix for a [15,5] binary code |
---|
6 | matrix h=randomCheck(redun,n,1); |
---|
7 | print(h); |
---|
8 | //corresponding generator matrix |
---|
9 | matrix g=dual_code(h); |
---|
10 | print(g); |
---|
11 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.