Linear_codes
system:sage


<h1>Linear code example</h1>

<p><span style="font-size: large;">Warning: if you do not have a copy of our bitbucket repository, these examples will not work!</span></p>

{{{id=1|
M = matrix(GF(2), [[1,0,0,0,0,1,1],
                   [0,1,0,0,1,0,1],
                   [0,0,1,0,1,1,0],
                   [0,0,0,1,1,1,1]])
C = LinearCode(M)
C.list()
///
}}}

{{{id=2|
m = vector(GF(2), (0,1,0,1))
C.encode(m)
///
}}}

{{{id=4|
m*M
///
}}}

{{{id=5|

///
}}}