You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspired by the need for efficient rasterisation (and some long-ago complaints by Cosmin), I would like to add the following operators for efficiently updating multiple elements of some targets for each element in an input array. The interface is heavily inspired by @melsman's expand utility function:
The imperative semantics of an expression stream_scatter dest f g arr is given by the following pseudocode:
for i < n:
m = f(arr[i])
for j < m:
(l, x) = g(arr[i], j)
dest[l] = x
I expect that a similar core language representation with reasonable fusion rules will be easy to design, and that a stream_reduce_by_index will be a straightforward extension of the same idea.
The text was updated successfully, but these errors were encountered:
Inspired by the need for efficient rasterisation (and some long-ago complaints by Cosmin), I would like to add the following operators for efficiently updating multiple elements of some targets for each element in an input array. The interface is heavily inspired by @melsman's
expand
utility function:The imperative semantics of an expression
stream_scatter dest f g arr
is given by the following pseudocode:I expect that a similar core language representation with reasonable fusion rules will be easy to design, and that a
stream_reduce_by_index
will be a straightforward extension of the same idea.The text was updated successfully, but these errors were encountered: