[GAP Forum] Adding One to a Vector
Laurent Bartholdi
laurent.bartholdi at gmail.com
Mon Mar 5 12:53:29 GMT 2007
Dear List,
> The following completes in 35 seconds on one of our machines and
> probably does what you want:
>
> i := Iterator(GF(2)^24);
> while not(IsDoneIterator(i)) do
> v := NextIterators(i);
> # Do something with v
> od;
This can be shortened to the equivalent code
for v in GF(2)^24 do
if WeightVecFFE(v)<8 then
...;
fi;
od;
--
Laurent Bartholdi \ laurent.bartholdi<at>gmail<dot>com
EPFL SB SMA IMB MAD \ Téléphone: +41 21-6935458
Station 8 \ Secrétaire: +41 21-6935501
CH-1015 Lausanne, Switzerland \ Fax: +41 21-6930339
More information about the Forum
mailing list