The stream_gather function seems to be very similar to the filter function in the Sequence library of SML. The difference being that stream_gather selects which elements to include in the output based on a list of indices, and the filter function selects elements based on whether each element returns true on the input filter function.
pdp
Should the gather operation above be stream_gather(tmp_input, indices, input)? Because the next slide meantions gather(R1,R0,mem_base) as gather input from mem_base buffer onto R1 as specified by indices R0.
The stream_gather function seems to be very similar to the filter function in the Sequence library of SML. The difference being that stream_gather selects which elements to include in the output based on a list of indices, and the filter function selects elements based on whether each element returns true on the input filter function.
Should the gather operation above be stream_gather(tmp_input, indices, input)? Because the next slide meantions gather(R1,R0,mem_base) as gather input from mem_base buffer onto R1 as specified by indices R0.