I can't quite figure out how to initialize a, say 101 x 101 f32 array with the value, say, sin ((xindex-50)*(xindex-50) + (yindex-50*yindex-50)).
I could do
array x(seq(-50,50), 101); // get one of the indices
array pic(101, 101); // result
but here I halt, as I can't see how to do a cross product of indices.
pic(seq(-50,50), seq(-50,50)) = .... // what do I put on the RHS that will work?
I'm sure when I wake up tomorrow it'll all be obvious, but I can't quite see it now. (It's so easy in Halide...)