[Numpy-discussion] Adding nested loops to template processor.

Charles R Harris charlesr.harris@gmail....
Tue Apr 22 14:08:49 CDT 2008


Hi All,

I want to use nested loops in our c template processor. The least intrusive
way I see to do this is to change the repeat header slightly, i.e.

/**begin repeat
#var1= a, b, c#
#var2= d, e, f#
#nest=1#
#var3= w, x#
#var4= y,  z#
*/

Where "nest" becomes a keyword. The variables then take values in the order

var1=a, var2=d, var3=w, var4=y
var1=a, var2=d, var3=x, var4=z
....

Does anyone object to this change or have a better suggestion?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080422/c9d4c19f/attachment.html 


More information about the Numpy-discussion mailing list