Re: [sage-support] enumerating vectors in Z^d

2010-05-06 Thread Mike Hansen
On Wed, May 5, 2010 at 8:38 PM, Eva wrote: > Problem background: I want to find the smallest (in l_2 norm) vectors > that satisfy a certain condition - creating a minimal set of coset > representatives for Z^d/A(Z^d) for a dilation matrix A.  My idea is to > start with 0 and enumerate vectors in Z

Re: [sage-support] enumerating vectors in Z^d

2010-05-06 Thread Dan Drake
On Wed, 05 May 2010 at 05:38PM -0700, Eva wrote: > My question: what is the best way to enumerate vectors in Z^d (for an > arbitrary d that my function will be passed as a parameter, so I don't > know its value in advance) starting with 0, then going through all > vectors with just a single 1 and a

[sage-support] enumerating vectors in Z^d

2010-05-05 Thread Eva
Problem background: I want to find the smallest (in l_2 norm) vectors that satisfy a certain condition - creating a minimal set of coset representatives for Z^d/A(Z^d) for a dilation matrix A. My idea is to start with 0 and enumerate vectors in Z^d one at a time. For each new vector that I consid