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

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

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:

  • enumerateVectors(Ring,List)

For the programmer

The object enumerateVectors is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/CodingTheory.m2:3716:0.