What is the most idiomatic way in Chapel to loop over a series of real numbers with a fixed increment?
The C equivalent code would be:
for (x = 0.0; x<1.0; x+=0.1) {}
In Python/Numpy, one might write
x = numpy.arange(0.0, 1.0, 0.1)
I could imagine writing an iterator as below, but is there an equivalent built into the language/standard modules? (and then of course, there is the question of writing parallel versions of this)
iter arange(start, stop, step) {
var x = start;
while (x < stop) {
yield x;
x += step;
}
}