Hi Jason fair question - I was trying to avoid including all the boring details of my code! In the simplest case I have a search routine which looks for M sets of d vectors inside a vector space of dimension N over a finite field, whose dot products satisfy a bunch of polynomial equations. My problem is that I need to compare each new vector with all of the antecedent vectors, so that the number of "equations" varies with d, M and N (in several "recursive dimensions"). The only way I have been able to do it so far is to construct separate loops by hand for each of d,N,M and for each "new" vector within them ... ie every time I alter any one of d, N or M, I need a new program!!
So I had hoped that your code would have allowed me to "telescope" the search and comparison loops as functions of d,M,N in a neat way; only obviously I've misunderstood what it does. The ii, jj, kk, "a[ii,jj,kk]" etc are ONLY used as indexing variables in my hoped-for program; they are never invoked as anything else. I then have vectors "vex[a[ii,jj,kk]]" etc which I compare with one another etc etc. Note I have put the indexing in inverted commas because I hadn't figured out yet how to do >1 level of recursion inside your code still .... I hope that clarifies somewhat what I am trying to do - thanks a lot Gary On Sat, Mar 30, 2013 at 9:41 AM, Jason Grout <jason-s...@creativetrax.com>wrote: > On 3/29/13 6:38 PM, GaryMak wrote: > >> d = 5; >> for ii in range(0,d): >> for a[ii] in range(0,d): >> print a[ii]^2 + ii; >> >> > What do you expect the output of this to be? What are you trying to > accomplish with this code? > > Thanks, > > Jason > > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "sage-support" group. > To unsubscribe from this topic, visit https://groups.google.com/d/** > topic/sage-support/**GFJdjFvKCvo/unsubscribe?hl=en<https://groups.google.com/d/topic/sage-support/GFJdjFvKCvo/unsubscribe?hl=en> > . > To unsubscribe from this group and all its topics, send an email to > sage-support+unsubscribe@**googlegroups.com<sage-support%2bunsubscr...@googlegroups.com> > . > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at > http://groups.google.com/**group/sage-support?hl=en<http://groups.google.com/group/sage-support?hl=en> > . > For more options, visit > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.