Warning: if you do not have a copy of our bitbucket repository, these examples will not work!
{{{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| /// }}}