Dear GAP forum,
> Dear GAP Forum, > How can I convert a vector (or a list) of length n with entries in GF(2) > to an element of GF(2^n)? This depends on your basis of GF(2^n) over GF(2).
Supposing that you want to work with the following basis of GF(32):
B:=List([0..4],i->Z(32)^i);
and that you want the following list to be converted:
l:=[0,1,0,0,1];
You can simply call:
LinearCombination(B,l);
The same works if you replace l by z(32)^0*l, i.e., if l consists of
elements of GF(2).
Best regards,
Jan
Miles-Receive-Header: reply