Macaulay2 » Documentation
Packages » CodingTheory > enumerateVectors
next | previous | forward | backward | up | index | toc

enumerateVectors -- a particular way to enumerate vectors over a finite field

Synopsis

Description

Given a $0$, $1$ valued list L, this function returns the list with all the possible ways to replace the one values in L, with a nonzero element of the finite field F.

i1 : F = GF(3);
i2 : enumerateVectors(F, {1,0,1,0,1})

o2 = {{1, 0, 1, 0, -1}, {-1, 0, -1, 0, 1}, {1, 0, 1, 0, 1}, {1, 0, -1, 0, 1},
     ------------------------------------------------------------------------
     {1, 0, -1, 0, -1}, {-1, 0, 1, 0, 1}, {-1, 0, 1, 0, -1}, {-1, 0, -1, 0,
     ------------------------------------------------------------------------
     -1}}

o2 : List

Ways to use enumerateVectors :

For the programmer

The object enumerateVectors is a method function.