ElementsCode( L [, Name ], F )
ElementsCode
creates an unrestricted code of the list of elements L,
in the field F. L must be a list of vectors, strings, polynomials or
codewords. Name can contain a short description of the code.
If L contains a codeword more than once, it is removed from the list and a GAP set is returned.
gap> M := Z(3)^0 * [ [1, 0, 1, 1], [2, 2, 0, 0], [0, 1, 2, 2] ];; gap> C := ElementsCode( M, "example code", GF(3) ); a (4,3,1..4)2 example code over GF(3) gap> MinimumDistance( C ); 4 gap> Elements( C ); [ [ 1 0 1 1 ], [ 2 2 0 0 ], [ 0 1 2 2 ] ] gap> last = M; true # Note that the elements are of codeword type
GAP 3.4.4