TreatAsVector( obj )
TreatAsVector
adapts the codewords in obj to make sure they are
printed as vectors. obj may be a codeword or a list of
codewords. Elements of obj that are not codewords are ignored. After
this function is called, the codewords will be treated as vectors. The
vector representation is obtained by using the coefficient list of the
polynomial.
Note that this only changes the way a codeword is printed.
TreatAsVector
returns nothing, it is called only for its side effect.
The function VectorCodeword
converts codewords to vectors (see
VectorCodeword).
gap> B := BinaryGolayCode(); a cyclic [23,12,7]3 binary Golay code over GF(2) gap> c := CodewordNr(B, 4); x^22 + x^20 + x^17 + x^14 + x^13 + x^12 + x^11 + x^10 gap> TreatAsVector(c); gap> c; [ 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 0 0 1 0 1 ]
GAP 3.4.4