On Sun, Sep 07, 2008 at 10:47:59PM -0700, cesarnda wrote: > > I do the following in cython: > > for index1 from 0 <= index1 < size: > vectorGen[index1] = 0 > > vectorGen[0] = -1 > > #main for for obtaining the whole set > for index from 0 <= index < limit: #for1 > localLimit = <int>ceil( <double>index / <double>modulus ) > value = vectorGen[0] + 1 > vectorGen[0] = value % modulus > > for index1 from 0 <= index1 < size: > print vectorGen[index], > print
In the inner for-loop, did you mean to print vectorGen[index1] instead of vectorGen[index] ? -Willem Jan P.S. This is probably more on-topic for the sage-support group than for the sage-devel group. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---