how to handle the tuple longer than 36 or higher? #520
-
I need to handle longer arrays, and I found that the tuple didn't support it. Even if the tuple can support it,, It would be too much trouble to do so. Acc vector seems inappropriate,Because many functions need parameters like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
The idea is that you have arrays of data (in If you think about the But maybe if you tell us a bit more about what you are trying to do we can give some more specific/helpful advice? |
Beta Was this translation helpful? Give feedback.
The idea is that you have arrays of data (in
Acc
) and then you perform some (parallel) operation over the elements in those arrays, where the functions on the individual elements are of thatExp
type.If you think about the
map
function for example, the array data is stored inAcc
, and the operation to apply to each element of the array is (as you saw) a functionExp a -> Exp b
.But maybe if you tell us a bit more about what you are trying to do we can give some more specific/helpful advice?