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

Charles R Harris charlesr.harris at gmail.com
Tue Apr 22 15:08:49 EDT 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://mail.python.org/pipermail/numpy-discussion/attachments/20080422/c9d4c19f/attachment.html>


More information about the NumPy-Discussion mailing list