Top
Back: D.9.1.10 closed_points
Forward: D.9.1.12 sys_code
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.9.1 brnoeth_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.9.1.11 dual_code

Procedure from library brnoeth.lib (see brnoeth_lib).

Usage:

dual_code(G); G a matrix of numbers

Return:

a generator matrix of the dual code generated by G

Note:

The input should be a matrix G of numbers.
The output is also a parity check matrix for the code defined by G

Example:

 
LIB "brnoeth.lib";
ring s=2,T,lp;
// here is the Hamming code of length 7 and dimension 3
matrix G[3][7]=1,0,1,0,1,0,1,0,1,1,0,0,1,1,0,0,0,1,1,1,1;
print(G);
→ 1,0,1,0,1,0,1,
→ 0,1,1,0,0,1,1,
→ 0,0,0,1,1,1,1 
matrix H=dual_code(G);
print(H);
→ 1,1,1,0,0,0,0,
→ 1,0,0,1,1,0,0,
→ 0,1,0,1,0,1,0,
→ 1,1,0,1,0,0,1 

Top Back: D.9.1.10 closed_points Forward: D.9.1.12 sys_code FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.9.1 brnoeth_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.