I am trying to implement the following loop nest in Halide
for (t = 0; t < TSTEPS; t++)
for (i = 1; i < N - 1; i++)
A[i] = (A[i-1] + A[i] + A[i + 1])/3;
But I couldn't figure out how to express the "t" loop since it doesn't contribute in the memory accesses. I went through the Halide tutorials but I couldn't find an example that illustrate such pattern.
Can you please show me an example of how to express such free loops in Halide.
Thanks.