> < ^ Date: Fri, 27 Jul 2001 14:27:20 +0200 (MET DST)
> < ^ From: Willem de Graaf <degraaf@math.uu.nl >
> < ^ Subject: Re: GUAVA 1.4

Dear Stas Bulygin,

You asked:

gap> GeneratorMat(HammingCode(3,GF(2)));
[ <an immutable GF2 vector of length 7>, <an immutable GF2 vector of length
7>
, <an immutable GF2 vector of length 7>,
<an immutable GF2 vector of length 7> ]

What should I do to obtain the generator matrix in the explicit form, or how
should I read this output?

There are several ways of doing that, for example:

gap> m:=GeneratorMat(HammingCode(3,GF(2)));;
gap> Display( m );
 1 1 1 . . . .
 1 . . 1 1 . .
 . 1 . 1 . 1 .
 1 1 . 1 . . 1
gap> List( m, x -> List( x, y -> y ) );
[ [ Z(2)^0, Z(2)^0, Z(2)^0, 0*Z(2), 0*Z(2), 0*Z(2), 0*Z(2) ], 
  [ Z(2)^0, 0*Z(2), 0*Z(2), Z(2)^0, Z(2)^0, 0*Z(2), 0*Z(2) ], 
  [ 0*Z(2), Z(2)^0, 0*Z(2), Z(2)^0, 0*Z(2), Z(2)^0, 0*Z(2) ], 
  [ Z(2)^0, Z(2)^0, 0*Z(2), Z(2)^0, 0*Z(2), 0*Z(2), Z(2)^0 ] ]

I hope this helps.

Best wishes,

Willem de Graaf

Miles-Receive-Header: reply


> < [top]