I would use (j,(j+1)%5) instead below. John
On 11 June 2012 15:26, D. S. McNeil <dsm...@gmail.com> wrote: > matrix(QuadraticField(2),5,{(j,int(mod(j+1,5))):1 for j in range(5)}) > Doug > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe from this group, send an email to > sage-devel+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org